dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.29k stars 4.74k forks source link

Test failure: System.Runtime.Numerics.Tests failed with Xunit.Sdk.EqualException & Xunit.Sdk.TrueException #19851

Closed ghost closed 4 years ago

ghost commented 7 years ago

Opened on behalf of @jiangzeng

The test System.Numerics.Tests.ComparisonTest/IComparable_Invalid has failed.

Assert.Equal() Failure\r Expected: obj\r Actual: (null)

    Stack Trace:

       at System.Numerics.Tests.ComparisonTest.IComparable_Invalid() in D:\A\_work\64\s\corefx\src\System.Runtime.Numerics\tests\BigInteger\Comparison.cs:line 367

System.Numerics.Tests.ComparisonTest/IComparable_Invalid:

Unhandled Exception of Type Xunit.Sdk.TrueException
Message :
Failure at line 299. Expected real: 1.5707963267949. Actual real: NaN\r\nExpected: True\r\nActual:   False

Stack Trace :
   at System.Numerics.Tests.ComplexTests.VerifyRealImaginaryProperties(Complex complex, Double real, Double imaginary, Int32 lineNumber) in D:\A\_work\64\s\corefx\src\System.Runtime.Numerics\tests\ComplexTests.cs:line 1583
   at System.Numerics.Tests.ComplexTests.ACos_Advanced(Double real, Double imaginary, Double expectedReal, Double expectedImaginary) in D:\A\_work\64\s\corefx\src\System.Runtime.Numerics\tests\ComplexTests.cs:line 299

Build : Master - 20170108.02 (Full Framework Tests) Failing configurations:

Failed tests: System.Numerics.Tests.ComparisonTest/IComparable_Invalid System.Numerics.Tests.ComplexTests/ACos_Advanced System.Numerics.Tests.ComplexTests/Equals System.Numerics.Tests.cast_fromTest/RunDoubleExplicitCastFromLargeBigIntegerTests System.Numerics.Tests.logTest/RunLargeValueLogTests

Details: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fdesktop~2Fcli~2F/build/20170108.02/workItem/System.Runtime.Numerics.Tests

KristinXie1 commented 7 years ago

This issue happens on build 20170111.07, Failed test: System.Numerics.Tests.cast_fromTest/RunDoubleExplicitCastFromLargeBigIntegerTests

detail: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fdesktop~2Fcli~2F/build/20170111.07/workItem/System.Runtime.Numerics.Tests/analysis/xunit/System.Numerics.Tests.cast_fromTest~2FRunDoubleExplicitCastFromLargeBigIntegerTests

Message:

Assert.Equal() Failure\r\nExpected: 8\r\nActual:   0

Stack Trace:

at System.Numerics.Tests.cast_fromTest.VerifyDoubleExplicitCastFromBigInteger(Double value, BigInteger bigInteger) in D:\A\_work\189\s\corefx\src\System.Runtime.Numerics\tests\BigInteger\cast_from.cs:line 896
   at System.Numerics.Tests.cast_fromTest.DoubleExplicitCastFromLargeBigIntegerTests(Int32 startShift, Int32 bigShiftLoopLimit, Int32 smallShift, Int32 smallShiftLoopLimit) in D:\A\_work\189\s\corefx\src\System.Runtime.Numerics\tests\BigInteger\cast_from.cs:line 727
   at System.Numerics.Tests.cast_fromTest.RunDoubleExplicitCastFromLargeBigIntegerTests() in D:\A\_work\189\s\corefx\src\System.Runtime.Numerics\tests\BigInteger\cast_from.cs:line 582
KristinXie1 commented 7 years ago

This issue happens on build 20170111.07, Failed test: System.Numerics.Tests.logTest/RunLargeValueLogTests

Detail: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fdesktop~2Fcli~2F/build/20170111.07/workItem/System.Runtime.Numerics.Tests/analysis/xunit/System.Numerics.Tests.logTest~2FRunLargeValueLogTests

Message:

Assert.True() Failure\r\nExpected: True\r\nActual:   False

Stack Trace:

  at System.Numerics.Tests.logTest.LargeValueLogTests(Int32 startShift, Int32 bigShiftLoopLimit, Int32 smallShift, Int32 smallShiftLoopLimit) in D:\A\_work\189\s\corefx\src\System.Runtime.Numerics\tests\BigInteger\log.cs:line 166
   at System.Numerics.Tests.logTest.RunLargeValueLogTests() in D:\A\_work\189\s\corefx\src\System.Runtime.Numerics\tests\BigInteger\log.cs:line 139