Skip to content

[wasm] Incorrect parsing of xunit output #816

@radical

Description

@radical

For System.Text.RegularExpressions.Tests (build):

[02:40:08] info: Starting:    System.Text.RegularExpressions.Tests.dll
[02:41:04] info: abc, beginning: 0, length: 5, expectedSuccess: True, expectedValue: "a\nabc")
[02:41:04] info: abc, beginning: 0, length: 5, expectedSuccess: True, expectedValue: "a\nabc")
[02:41:06] info: abc, beginning: 0, length: 5, expectedSuccess: True, expectedValue: "a\nabc")
[02:41:06] info: abc, beginning: 0, length: 5, expectedSuccess: True, expectedValue: "a\nabc")
[02:41:08] info: abc, beginning: 0, length: 5, expectedSuccess: True, expectedValue: "a\nabc")
[02:41:08] info: abc, beginning: 0, length: 5, expectedSuccess: True, expectedValue: "a\nabc")
[02:41:12] info: )])
[02:41:12] info: )])
[02:41:12] info: fghijkl)])
[02:41:12] info: 	�
 )])
[02:41:12] info: )])
[02:41:12] info: )])
[02:41:12] info: fghijkl)])
[02:41:12] info: 	�
 )])
[02:41:12] info: )])
[02:41:12] info: )])
[02:41:12] info: fghijkl)])
[02:41:12] info: 	�
 )])
[02:42:06] info: Finished:    System.Text.RegularExpressions.Tests.dll

This seems to be parsing of the console messages breaking down. Also, here, we get an exception too:

fail: "System.AggregateException: One or more errors occurred. ('.', hexadecimal value 0x00, is an invalid character.)
 ---> System.ArgumentException: '.', hexadecimal value 0x00, is an invalid character.
   at System.Xml.XmlUtf8RawTextWriter.InvalidXmlChar(Int32 ch, Byte* pDst, Boolean entitize) in /_/src/libraries/System.Private.Xml/src/System/Xml/Core/XmlUtf8RawTextWriter.cs:line 1475
   at System.Xml.XmlUtf8RawTextWriter.WriteAttributeTextBlock(Char* pSrc, Char* pSrcEnd) in /_/src/libraries/System.Private.Xml/src/System/Xml/Core/XmlUtf8RawTextWriter.cs:line 819
   at System.Xml.XmlUtf8RawTextWriter.WriteString(String text) in /_/src/libraries/System.Private.Xml/src/System/Xml/Core/XmlUtf8RawTextWriter.cs:line 535
   at System.Xml.XmlUtf8RawTextWriterIndent.WriteString(String text) in /_/src/libraries/System.Private.Xml/src/System/Xml/Core/XmlUtf8RawTextWriter.cs:line 1961
   at System.Xml.XmlWellFormedWriter.WriteString(String text) in /_/src/libraries/System.Private.Xml/src/System/Xml/Core/XmlWellFormedWriter.cs:line 1091
   at System.Xml.XmlWriter.WriteAttributeString(String prefix, String localName, String ns, String value) in /_/src/libraries/System.Private.Xml/src/System/Xml/Core/XmlWriter.cs:line 112
   at System.Xml.Linq.ElementWriter.WriteStartElement(XElement e) in /_/src/libraries/System.Private.Xml.Linq/src/System/Xml/Linq/XLinq.cs:line 384
   at System.Xml.Linq.ElementWriter.WriteElement(XElement e) in /_/src/libraries/System.Private.Xml.Linq/src/System/Xml/Linq/XLinq.cs:line 216
   at System.Xml.Linq.XElement.WriteTo(XmlWriter writer) in /_/src/libraries/System.Private.Xml.Linq/src/System/Xml/Linq/XElement.cs:line 1299
   at System.Xml.Linq.XElement.Save(XmlWriter writer) in /_/src/libraries/System.Private.Xml.Linq/src/System/Xml/Linq/XElement.cs:line 1162
   at System.Xml.Linq.XElement.Save(Stream stream, SaveOptions options) in /_/src/libraries/System.Private.Xml.Linq/src/System/Xml/Linq/XElement.cs:line 1062
   at System.Xml.Linq.XElement.Save(Stream stream) in /_/src/libraries/System.Private.Xml.Linq/src/System/Xml/Linq/XElement.cs:line 1044
   at Microsoft.DotNet.XHarness.TestRunners.Xunit.ThreadlessXunitTestRunner.WriteResultsToFile(TextWriter writer, XmlResultJargon jargon)
   at Microsoft.DotNet.XHarness.TestRunners.Common.ApplicationEntryPoint.WriteResults(TestRunner runner, ApplicationOptions options, LogWriter logger, TextWriter writer)
   at Microsoft.DotNet.XHarness.TestRunners.Common.ApplicationEntryPoint.InternalRunAsync(ApplicationOptions options, TextWriter loggerWriter, TextWriter resultsFile)
   at Microsoft.DotNet.XHarness.TestRunners.Common.WasmApplicationEntryPointBase.RunAsync()
   at Microsoft.DotNet.XHarness.TestRunners.Xunit.WasmApplicationEntryPoint.Run()
   at SimpleWasmTestRunner.Main(String[] args) in /_/src/libraries/Common/tests/WasmTestRunner/WasmTestRunner.cs:line 61
   --- End of inner exception stack trace ---"

I haven't seen this exception before though, but seems related to the message parsing issue.

cc @lewing @maraf @pavelsavara

Metadata

Metadata

Assignees

Labels

wasmWASM area

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions