Skip to content

Encountering BCL test failures in System.Numerics.Tests on Android when AOT + LLVM are enabled #1451

Description

@pjcollins

I'm seeing failures in the following new XUnit tests when AOT and LLVM are enabled. Failure messages and stack traces can be found in the test result xml linked at the bottom.

System.Numerics.Tests.Matrix4x4Tests.Matrix4x4CreateReflectionTest01
System.Numerics.Tests.Matrix4x4Tests.Matrix4x4CreateShadowTest02
System.Numerics.Tests.PlaneTests.PlaneConstructorTest
System.Numerics.Tests.PlaneTests.PlaneConstructorTest1
System.Numerics.Tests.PlaneTests.PlaneConstructorTest3
System.Numerics.Tests.PlaneTests.PlaneCreateFromVerticesTest
System.Numerics.Tests.PlaneTests.PlaneEqualityTest
System.Numerics.Tests.PlaneTests.PlaneEqualsNanTest
System.Numerics.Tests.PlaneTests.PlaneInequalityTest

Steps to Reproduce

  1. Download prebuilt .apk file, and run it on an armeabi-v8a device:

adb install 15-7-aotllvm-Xamarin.Android.Bcl_Tests-Signed.apk
adb shell am instrument -w Xamarin.Android.Bcl_Tests/xamarin.android.bcltests.XUnitInstrumentation

  1. Alternatively, a smaller repro which contains the relevant test source could likely be built and installed with AOT+LLVM enabled.

Details

Link to .apk file - https://microsoft-my.sharepoint.com/:u:/p/pecolli/EYrN-tuwhJFJmkrnwj5vAgIBzEQFPGZkCUcmSkNMJUYMUg?e=LBt3gv
Link to obj output - https://microsoft-my.sharepoint.com/:u:/p/pecolli/EXGoMM2LZURMhg8mPY8IUyoBgDudDiDsjXrLA86zaPjHSQ?e=3YL4a8

Version Information

Windows 10 w/ VS 15.7
Xamarin.Android SDK 8.3.0.5 (HEAD/1a8ed5388)

Log File

https://gist.githubusercontent.com/pjcollins/bdb1339e280e64e64cf9d9400f0640a4/raw/40416b509416840f94fe42e908ae427d320aa6e0/BclXUnit_release_aot_llvmTestResult.xml

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions