Skip to content

Test failure: System.IO.Tests.StreamReader_StringCtorTests.NegativeOneBufferSize_ShouldNotThrowException #128019

@VincentBu

Description

@VincentBu

Failed in: runtime-coreclr libraries-pgo 20260510.1

Failed tests:

net11.0-linux-Release-x64-fullpgo-AzureLinux.3.Amd64.Open
- System.IO.Tests.StreamReader_StringCtorTests.NegativeOneBufferSize_ShouldNotThrowException

Error message:

System.ArgumentOutOfRangeException : bufferSize ('-1') must be a non-negative and non-zero value. (Parameter 'bufferSize')
Actual value was -1.

Stack trace:

   at System.ArgumentOutOfRangeException.ThrowNegativeOrZero[T](T value, String paramName) in /_/src/libraries/System.Private.CoreLib/src/System/ArgumentOutOfRangeException.cs:line 100
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) in /_/src/libraries/System.Private.CoreLib/src/System/IO/StreamReader.cs:line 200
   at System.IO.Tests.StreamReader_StringCtorTests.NegativeOneBufferSize_ShouldNotThrowException() in /_/src/libraries/System.Runtime/tests/System.IO.Tests/StreamReader/StreamReader.StringCtorTests.cs:line 63
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs:line 134

Metadata

Metadata

Assignees

No one assigned

    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