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