Add option to run tests in unloadable context (dotnet/coreclr#22332)
authorJan Vorlicek <janvorli@microsoft.com>
Wed, 6 Feb 2019 11:23:08 +0000 (12:23 +0100)
committerGitHub <noreply@github.com>
Wed, 6 Feb 2019 11:23:08 +0000 (12:23 +0100)
commit0e112bb33e268c95bb8de3566f6062b0c6edb9ed
tree6e0cb7de7dc98cc096e30c504a8fce4c1b4bdb97
parentbe867d41cdab578768a42eb39d8c4724af437c8e
Add option to run tests in unloadable context (dotnet/coreclr#22332)

This change adds new "runincontext" option to the tests/runtest.cmd that
allows running tests inside of an unloadable AssemblyLoadContext.
It also adds new property that allows tests to be marked as incompatible
with running this way. All known tests that have such issue are marked
in this PR too.

Commit migrated from https://github.com/dotnet/coreclr/commit/40bee916727e7b2ef5f1aa99e7e5ce1d345711a8
68 files changed:
src/coreclr/tests/runtest.cmd
src/coreclr/tests/runtest.py
src/coreclr/tests/runtest.sh
src/coreclr/tests/scripts/runincontext.sh [new file with mode: 0755]
src/coreclr/tests/src/CLRTest.Execute.Bash.targets
src/coreclr/tests/src/CLRTest.Execute.Batch.targets
src/coreclr/tests/src/CoreMangLib/system/span/RefStructWithSpan.csproj
src/coreclr/tests/src/GC/Features/HeapExpansion/bestfit-finalize.csproj
src/coreclr/tests/src/GC/Features/HeapExpansion/pluggaps.csproj
src/coreclr/tests/src/GC/Regressions/v2.0-beta1/149926/149926.csproj
src/coreclr/tests/src/GC/Scenarios/BinTree/thdtree.csproj
src/coreclr/tests/src/GC/Scenarios/BinTree/thdtreegrowingobj.csproj
src/coreclr/tests/src/GC/Scenarios/BinTree/thdtreelivingobj.csproj
src/coreclr/tests/src/GC/Scenarios/FinalizeTimeout/FinalizeTimeout.csproj
src/coreclr/tests/src/GC/Scenarios/LeakGen/leakgenthrd.csproj
src/coreclr/tests/src/GC/Scenarios/THDList/thdlist.csproj
src/coreclr/tests/src/Interop/COM/NETClients/Aggregation/NETClientAggregation.csproj
src/coreclr/tests/src/Interop/COM/NETClients/IDispatch/NETClientIDispatch.csproj
src/coreclr/tests/src/Interop/COM/NETClients/Primitives/NETClientPrimitives.csproj
src/coreclr/tests/src/Interop/COM/NETClients/Primitives/NETClientPrimitivesInALC.csproj
src/coreclr/tests/src/Interop/ICustomMarshaler/ConflictingNames/MultipleALCs.csproj
src/coreclr/tests/src/Interop/ICustomMarshaler/ConflictingNames/SameNameDifferentAssembly.csproj
src/coreclr/tests/src/Interop/ICustomMarshaler/Primitives/ICustomMarshaler.csproj
src/coreclr/tests/src/Interop/NativeLibraryResolveEvent/ResolveEventTests.csproj
src/coreclr/tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsParam/AsInterface/AsInterfaceTest.csproj
src/coreclr/tests/src/Interop/PInvoke/DllImportPath/DllImportPathTest.csproj
src/coreclr/tests/src/Interop/PInvoke/IEnumerator/IEnumeratorTest.csproj
src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Avx2/Avx2_r.csproj
src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Avx2/Avx2_ro.csproj
src/coreclr/tests/src/JIT/Methodical/Boxing/misc/_dbgconcurgc_il.ilproj
src/coreclr/tests/src/JIT/Methodical/Boxing/misc/_relconcurgc_il.ilproj
src/coreclr/tests/src/JIT/Methodical/cctor/misc/threads2_cs_do.csproj
src/coreclr/tests/src/JIT/Methodical/explicit/basic/_dbgrefarg_i1.csproj
src/coreclr/tests/src/JIT/Methodical/explicit/basic/_relrefarg_i1.csproj
src/coreclr/tests/src/JIT/Performance/CodeQuality/Bytemark/Bytemark.csproj
src/coreclr/tests/src/JIT/Regression/CLR-x86-JIT/V1-M09/b13621/b13621.csproj
src/coreclr/tests/src/JIT/Regression/CLR-x86-JIT/V1-QFE/b151440/static-none.ilproj
src/coreclr/tests/src/JIT/Regression/CLR-x86-JIT/V1.1-M1-Beta1/b143840/b143840.ilproj
src/coreclr/tests/src/JIT/Regression/VS-ia64-JIT/M00/b113493/b113493.csproj
src/coreclr/tests/src/JIT/superpmi/superpmicollect.csproj
src/coreclr/tests/src/Loader/AssemblyDependencyResolverTests/AssemblyDependencyResolverTests.csproj
src/coreclr/tests/src/Loader/NativeLibs/FromNativePaths.csproj
src/coreclr/tests/src/Loader/regressions/polyrec/Polyrec.csproj
src/coreclr/tests/src/baseservices/compilerservices/FixedAddressValueType/FixedAddressValueType.csproj
src/coreclr/tests/src/baseservices/compilerservices/dynamicobjectproperties/test448035.csproj
src/coreclr/tests/src/baseservices/compilerservices/modulector/runmoduleconstructor.cs
src/coreclr/tests/src/baseservices/exceptions/WindowsEventLog/WindowsEventLog.csproj
src/coreclr/tests/src/baseservices/exceptions/regressions/V1/SEH/VJ/ExternalException.csproj
src/coreclr/tests/src/baseservices/exceptions/regressions/V1/SEH/VJ/UserExceptionThread.csproj
src/coreclr/tests/src/baseservices/exceptions/stacktrace/Tier1StackTrace.csproj
src/coreclr/tests/src/baseservices/threading/monitor/enter/monitorenter.csproj
src/coreclr/tests/src/baseservices/threading/mutex/abandonedmutex/am05waitanymutex.csproj
src/coreclr/tests/src/baseservices/threading/mutex/abandonedmutex/am07abandonmultiplemutex.csproj
src/coreclr/tests/src/baseservices/threading/mutex/abandonedmutex/am08mixedarray.csproj
src/coreclr/tests/src/baseservices/threading/regressions/13662/13662-a.csproj
src/coreclr/tests/src/baseservices/threading/regressions/13662/13662-b.csproj
src/coreclr/tests/src/baseservices/threading/regressions/13662/13662-simple.csproj
src/coreclr/tests/src/baseservices/threading/regressions/beta2/437017.csproj
src/coreclr/tests/src/baseservices/threading/waithandle/waitall/waitallex8.csproj
src/coreclr/tests/src/baseservices/threading/waithandle/waitall/waitallex8a.csproj
src/coreclr/tests/src/baseservices/threading/waithandle/waitany/waitanyex10.csproj
src/coreclr/tests/src/baseservices/threading/waithandle/waitany/waitanyex10a.csproj
src/coreclr/tests/src/readytorun/DynamicMethodGCStress/DynamicMethodGCStress.csproj
src/coreclr/tests/src/readytorun/tests/main.cs
src/coreclr/tests/src/tracing/runtimeeventsource/runtimeeventsource.csproj
src/coreclr/tests/src/tracing/tracevalidation/inducedgc/inducedgc.csproj
src/coreclr/tests/src/tracing/tracevalidation/jittingstarted/JittingStarted.csproj
src/coreclr/tests/src/tracing/tracevalidation/rundown/rundown.csproj