dotnet / runtime

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

Crossgen outerloop regression: 2 variance safety test failures in SVM VarianceSafety #109201

Open kg opened 1 month ago

kg commented 1 month ago
/home/kate/Projects/dotnet-runtime-wasm/artifacts/tests/coreclr/linux.x64.Release/Tests/Core_Root/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true VarianceSafety.dll ''
Scenario Contravariant safety test failed - expected TypeLoadException, got Did not throw exception
Scenario Covariant safety test failed - expected TypeLoadException, got Did not throw exception
0 successes reported
2 failures reported
in ReleaseLock
Expected: 100
Actual: 1
END EXECUTION - FAILED
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.
> /home/kate/Projects/dotnet-runtime-wasm/artifacts/tests/coreclr/linux.x64.Release/Loader/Loader/../classloader/StaticVirtualMethods/NegativeTestCases/VarianceSafety/VarianceSafety.sh
kg commented 1 month ago

Repro script (pass 'Checked'):

rm -rf ./artifacts
rm -rf ./artifacts/tests
rm -rf ./.dotnet
./build.sh Clr+Tools+Libs -c Release -rc $1 --os linux

./src/tests/build.sh $1 -priority1 -crossgen2 -p:LibrariesConfiguration=Release
PATH=/home/kate/Projects/dotnet-runtime-wasm/.dotnet/:$PATH RunCrossGen2=1 CompositeBuildMode=1 src/tests/run.sh $1