diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2019-06-21 14:21:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-21 14:21:34 +0200 |
commit | d7db5ab9bd3ad449b18dd96b3ac37592b207205b (patch) | |
tree | 75f2fd1678088042e47f077d44d1fa88a7d641e3 /tests/src/Loader/ContextualReflection/ContextualReflection.csproj | |
parent | e999f37a83583768aa68ad9fda805088ac9df6b8 (diff) | |
download | coreclr-d7db5ab9bd3ad449b18dd96b3ac37592b207205b.tar.gz coreclr-d7db5ab9bd3ad449b18dd96b3ac37592b207205b.tar.bz2 coreclr-d7db5ab9bd3ad449b18dd96b3ac37592b207205b.zip |
Disable unloading incompatible test for runincontext (#25126)
* Disable unloading incompatible test for runincontext
These tests do various things that make them incompatible with running
in an unloadable assembly load context using the runincontext tool.
I've attached comments to the UnloadabilityIncompatible element
describing the specific problems of each test.
I've also found a problem in the parameter passing in the
runincontext.sh where it was always passing 7 parameters to each test
and tests that were checking the number of parameters were failing due
to that. This change fixes it by passing just the parameters that were
passed to the runincontext.sh.
* Added printing unhandled exception details if it happened in the test
* Added 10ms wait to the GC collection loop to also give time to async
stuff to completely exit threadpool threads
Diffstat (limited to 'tests/src/Loader/ContextualReflection/ContextualReflection.csproj')
-rw-r--r-- | tests/src/Loader/ContextualReflection/ContextualReflection.csproj | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/src/Loader/ContextualReflection/ContextualReflection.csproj b/tests/src/Loader/ContextualReflection/ContextualReflection.csproj index 6f88de3877..27dd6ee019 100644 --- a/tests/src/Loader/ContextualReflection/ContextualReflection.csproj +++ b/tests/src/Loader/ContextualReflection/ContextualReflection.csproj @@ -8,6 +8,10 @@ <OutputType>Exe</OutputType> <CLRTestKind>BuildAndRun</CLRTestKind> <ProjectGuid>{78030DC5-F1A6-4B98-A130-A66F5047FF29}</ProjectGuid> + <!-- The test uses AssemblyLoadContext (directly) to load the test assembly and its dependency that's part of the test again. + When the test is loaded into an unloadable context in the runincontext tool, the dependency assembly cannot be found + since it is in a different folder than the runincontext tool. --> + <UnloadabilityIncompatible>true</UnloadabilityIncompatible> </PropertyGroup> <ItemGroup> <Compile Include="ContextualReflection.cs" /> |