C:\h\w\B5A00953\w\BBB709E5\e>xunit.console.exe System.Text.Json.Tests.dll -xml testResults.xml -nologo -nocolor -trait category=OuterLoop -notrait category=IgnoreForCI -notrait category=failing -notrait category=nonnetfxtests -notrait category=nonwindowstests
Discovering: System.Text.Json.Tests (app domain = on [no shadow copy], method display = ClassAndMethod, method display options = None)
Discovered: System.Text.Json.Tests (found 20 of 1978 test cases)
Starting: System.Text.Json.Tests (parallel test collections = on, max threads = 2)
System.Text.Json.Tests.Utf8JsonWriterTests.WriteLargeJsonToStreamWithoutFlushing [FAIL]
Assert.Throws() Failure
Expected: typeof(System.OverflowException)
Actual: typeof(System.OutOfMemoryException): Cannot allocate a buffer of size 2291549962.
---- System.OutOfMemoryException : Cannot allocate a buffer of size 2291549962.
Stack Trace:
/_/src/libraries/Common/src/System/Buffers/ArrayBufferWriter.cs(202,0): at System.Buffers.ArrayBufferWriter`1.ThrowOutOfMemoryException(UInt32 capacity)
/_/src/libraries/Common/src/System/Buffers/ArrayBufferWriter.cs(185,0): at System.Buffers.ArrayBufferWriter`1.CheckAndResizeBuffer(Int32 sizeHint)
/_/src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.cs(1043,0): at System.Text.Json.Utf8JsonWriter.Grow(Int32 requiredSize)
/_/src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteValues.String.cs(270,0): at System.Text.Json.Utf8JsonWriter.WriteStringMinimized(ReadOnlySpan`1 escapedValue)
/_/src/libraries/System.Text.Json/tests/Utf8JsonWriterTests.cs(755,0): at System.Text.Json.Tests.Utf8JsonWriterTests.<>c__DisplayClass34_0.<WriteLargeJsonToStreamWithoutFlushing>b__0()
----- Inner Stack Trace -----
/_/src/libraries/Common/src/System/Buffers/ArrayBufferWriter.cs(202,0): at System.Buffers.ArrayBufferWriter`1.ThrowOutOfMemoryException(UInt32 capacity)
/_/src/libraries/Common/src/System/Buffers/ArrayBufferWriter.cs(185,0): at System.Buffers.ArrayBufferWriter`1.CheckAndResizeBuffer(Int32 sizeHint)
/_/src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.cs(1043,0): at System.Text.Json.Utf8JsonWriter.Grow(Int32 requiredSize)
/_/src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteValues.String.cs(270,0): at System.Text.Json.Utf8JsonWriter.WriteStringMinimized(ReadOnlySpan`1 escapedValue)
/_/src/libraries/System.Text.Json/tests/Utf8JsonWriterTests.cs(755,0): at System.Text.Json.Tests.Utf8JsonWriterTests.<>c__DisplayClass34_0.<WriteLargeJsonToStreamWithoutFlushing>b__0()
Finished: System.Text.Json.Tests
=== TEST EXECUTION SUMMARY ===
Console Log Summary
Builds
Configurations
Helix Logs