[test-runner] Filter out invalid XML chars before writing to XML
commit36a89209fe631b673cc5df989af85cde1eb97853
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 27 Oct 2015 19:37:34 +0000 (27 20:37 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 27 Oct 2015 19:37:34 +0000 (27 20:37 +0100)
tree1252cb45e2708c219501d9aef5ae28c14fdea1ae
parent1c248829d49b8efa00abf950fe20f7c1bbbaca4e
[test-runner] Filter out invalid XML chars before writing to XML

The test-runner crashed sometimes when running the CoreCLR testsuite with the following exception:
"System.ArgumentException: '', hexadecimal value 0x0F, is an invalid character." when trying to
emit the NUnit xml.

The stacktrace of one of the failing tests contained the character 0x0F which is invalid in XML,
we now filter out those invalid chars.
mono/tests/test-runner.cs