From e19294624d34f5b2e4d58176955e38982c59e235 Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Wed, 21 Oct 2020 15:53:43 +0200 Subject: [PATCH] Disable / fix failing test in runincontext testing (#43663) * Disable all profiler tests since they launch a secondary process and process launch creates an infinite event loop in the SocketAsyncEngine on Linux. Since runincontext loads even framework assemblies into the unloadable context, locals in this loop prevent unloading. The tests were working before Process.Start moved to using sockets. * Fix the multifoldertest to work under runincontext - the shell script generated from the .csproj was passing an absolute path for the multifolder.dll to the runincontext.sh/cmd instead of a relative path that is used in all other tests and that the runincontext expects. --- src/tests/profiler/elt/slowpatheltenter.csproj | 5 +++++ src/tests/profiler/elt/slowpatheltleave.csproj | 5 +++++ src/tests/profiler/eventpipe/eventpipe.csproj | 5 +++++ src/tests/profiler/eventpipe/eventpipe_readevents.csproj | 5 +++++ src/tests/profiler/gc/gc.csproj | 5 +++++ src/tests/profiler/gc/gcbasic.csproj | 5 +++++ src/tests/profiler/rejit/rejit.csproj | 5 +++++ src/tests/profiler/unittest/getappdomainstaticaddress.csproj | 5 +++++ src/tests/profiler/unittest/metadatagetdispenser.csproj | 5 +++++ src/tests/profiler/unittest/releaseondetach.csproj | 5 +++++ src/tests/readytorun/multifolder/multifolder.csproj | 4 ++-- .../tracing/eventpipe/rundownvalidation/rundownvalidation.csproj | 5 +++++ 12 files changed, 57 insertions(+), 2 deletions(-) diff --git a/src/tests/profiler/elt/slowpatheltenter.csproj b/src/tests/profiler/elt/slowpatheltenter.csproj index 8d2ac30..488344e 100644 --- a/src/tests/profiler/elt/slowpatheltenter.csproj +++ b/src/tests/profiler/elt/slowpatheltenter.csproj @@ -6,6 +6,11 @@ true 0 true + + true diff --git a/src/tests/profiler/elt/slowpatheltleave.csproj b/src/tests/profiler/elt/slowpatheltleave.csproj index 8d2ac30..488344e 100644 --- a/src/tests/profiler/elt/slowpatheltleave.csproj +++ b/src/tests/profiler/elt/slowpatheltleave.csproj @@ -6,6 +6,11 @@ true 0 true + + true diff --git a/src/tests/profiler/eventpipe/eventpipe.csproj b/src/tests/profiler/eventpipe/eventpipe.csproj index fc9c21e..b2fbdc9 100644 --- a/src/tests/profiler/eventpipe/eventpipe.csproj +++ b/src/tests/profiler/eventpipe/eventpipe.csproj @@ -8,6 +8,11 @@ true true + + true diff --git a/src/tests/profiler/eventpipe/eventpipe_readevents.csproj b/src/tests/profiler/eventpipe/eventpipe_readevents.csproj index fc9c21e..b2fbdc9 100644 --- a/src/tests/profiler/eventpipe/eventpipe_readevents.csproj +++ b/src/tests/profiler/eventpipe/eventpipe_readevents.csproj @@ -8,6 +8,11 @@ true true + + true diff --git a/src/tests/profiler/gc/gc.csproj b/src/tests/profiler/gc/gc.csproj index fc9c21e..b2fbdc9 100644 --- a/src/tests/profiler/gc/gc.csproj +++ b/src/tests/profiler/gc/gc.csproj @@ -8,6 +8,11 @@ true true + + true diff --git a/src/tests/profiler/gc/gcbasic.csproj b/src/tests/profiler/gc/gcbasic.csproj index fc9c21e..b2fbdc9 100644 --- a/src/tests/profiler/gc/gcbasic.csproj +++ b/src/tests/profiler/gc/gcbasic.csproj @@ -8,6 +8,11 @@ true true + + true diff --git a/src/tests/profiler/rejit/rejit.csproj b/src/tests/profiler/rejit/rejit.csproj index ac5c4b6..9b071bf 100644 --- a/src/tests/profiler/rejit/rejit.csproj +++ b/src/tests/profiler/rejit/rejit.csproj @@ -9,6 +9,11 @@ True true + + true diff --git a/src/tests/profiler/unittest/getappdomainstaticaddress.csproj b/src/tests/profiler/unittest/getappdomainstaticaddress.csproj index 09f11fb..f879517 100644 --- a/src/tests/profiler/unittest/getappdomainstaticaddress.csproj +++ b/src/tests/profiler/unittest/getappdomainstaticaddress.csproj @@ -8,6 +8,11 @@ true true + + true diff --git a/src/tests/profiler/unittest/metadatagetdispenser.csproj b/src/tests/profiler/unittest/metadatagetdispenser.csproj index fc9c21e..b2fbdc9 100644 --- a/src/tests/profiler/unittest/metadatagetdispenser.csproj +++ b/src/tests/profiler/unittest/metadatagetdispenser.csproj @@ -8,6 +8,11 @@ true true + + true diff --git a/src/tests/profiler/unittest/releaseondetach.csproj b/src/tests/profiler/unittest/releaseondetach.csproj index c7b6a7b..e453f52 100644 --- a/src/tests/profiler/unittest/releaseondetach.csproj +++ b/src/tests/profiler/unittest/releaseondetach.csproj @@ -5,6 +5,11 @@ BuildAndRun true 0 + + true diff --git a/src/tests/readytorun/multifolder/multifolder.csproj b/src/tests/readytorun/multifolder/multifolder.csproj index fc439c5..6b73ae6 100644 --- a/src/tests/readytorun/multifolder/multifolder.csproj +++ b/src/tests/readytorun/multifolder/multifolder.csproj @@ -59,7 +59,7 @@ $(CLRTestBatchPreCommands) dir %scriptPath% dir %scriptPath%\multifolder - set ExePath=%scriptPath%\multifolder\multifolder.dll + set ExePath=multifolder\multifolder.dll set COMPlus_NativeImageSearchPaths=%scriptPath% ]]> @@ -97,7 +97,7 @@ $(BashCLRTestPreCommands) echo Running crossgen2: $__Command $__Command - ExePath=$__OutputDir/multifolder/multifolder.dll + ExePath=multifolder/multifolder.dll export COMPlus_NativeImageSearchPaths=$__OutputDir ]]> diff --git a/src/tests/tracing/eventpipe/rundownvalidation/rundownvalidation.csproj b/src/tests/tracing/eventpipe/rundownvalidation/rundownvalidation.csproj index 60f19b5..5793a70 100644 --- a/src/tests/tracing/eventpipe/rundownvalidation/rundownvalidation.csproj +++ b/src/tests/tracing/eventpipe/rundownvalidation/rundownvalidation.csproj @@ -6,6 +6,11 @@ true 0 true + + true -- 2.7.4