diff options
author | Bruce Forstall <brucefo@microsoft.com> | 2018-06-08 23:08:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-08 23:08:54 -0700 |
commit | e3a43269167dd7c5ec5b4e74458d6d5f045d3ced (patch) | |
tree | d256920769c23da81019f79dfb1fa02327d9fd76 /tests | |
parent | b5a5982eae7ea78b4bb5cc1c30637df412f82a0f (diff) | |
parent | 1f64eb33fdec9ec6c5b5ae9cc212c13a5d1f375c (diff) | |
download | coreclr-e3a43269167dd7c5ec5b4e74458d6d5f045d3ced.tar.gz coreclr-e3a43269167dd7c5ec5b4e74458d6d5f045d3ced.tar.bz2 coreclr-e3a43269167dd7c5ec5b4e74458d6d5f045d3ced.zip |
Merge pull request #18363 from sdmaclea/PR-waitany-debug
Waitany test debug and cleanup
Diffstat (limited to 'tests')
68 files changed, 146 insertions, 114 deletions
diff --git a/tests/src/baseservices/threading/interlocked/compareexchange/compareexchange1_cti.cs b/tests/src/baseservices/threading/interlocked/compareexchange/compareexchange1_cti.cs index b7c1da2d76..f3710a9505 100644 --- a/tests/src/baseservices/threading/interlocked/compareexchange/compareexchange1_cti.cs +++ b/tests/src/baseservices/threading/interlocked/compareexchange/compareexchange1_cti.cs @@ -49,9 +49,6 @@ public class InterlockedCompareExchange1 threadA.Start(); // Block calling thread until spawned Thread A completes threadA.Join(); - // Once Thread A completes, block - // calling thread until Thread B completes as well - threadB.Join(); // now, the final value of globalValue and state should be -0.1 if (globalValue != -0.1 && state != -0.1) { @@ -131,10 +128,10 @@ public class InterlockedCompareExchange1 if (i == 10) { threadB.Start(); + threadB.Join(); } state = Interlocked.CompareExchange(ref globalValue, -0.1, 10.0); i++; - Thread.Sleep(10); } } public void changeGlobal() diff --git a/tests/src/baseservices/threading/interlocked/compareexchange/compareexchange5_cti.cs b/tests/src/baseservices/threading/interlocked/compareexchange/compareexchange5_cti.cs index f703ab948b..30feaa38da 100644 --- a/tests/src/baseservices/threading/interlocked/compareexchange/compareexchange5_cti.cs +++ b/tests/src/baseservices/threading/interlocked/compareexchange/compareexchange5_cti.cs @@ -51,9 +51,6 @@ public class InterlockedCompareExchange5 threadA.Start(); // Block spawning thread until Thread A completes threadA.Join(); - // Once Thread A completes, block spawning thread - // until Thread B completes as well - threadB.Join(); // now, the final values of // globalValue and state should be "changedValue" if (globalValue.ToString() != "changedValue" && state != (object)("changedValue")) @@ -88,9 +85,6 @@ public class InterlockedCompareExchange5 threadA.Start(); // Block spawning thread until Thread A completes threadA.Join(); - // Once Thread A completes, block spawning thread - // until Thread B completes as well - threadB.Join(); // now, the final values of // globalValue and state should NOT be -100 if (((myClass)globalValue).a != -100 && ((myClass)state).a != -100) @@ -183,6 +177,7 @@ public class InterlockedCompareExchange5 if (i == 10) { threadB.Start(); + threadB.Join(); } // first ten iterations, globalValue does not // equal comparand, so it keeps returning @@ -196,7 +191,6 @@ public class InterlockedCompareExchange5 // here we use the object overload state = Interlocked.CompareExchange(ref globalValue, value, comparand); i++; - Thread.Sleep(10); } } public void changeGlobal() @@ -221,6 +215,7 @@ public class InterlockedCompareExchange5 if (i == 10) { threadB.Start(); + threadB.Join(); } // first ten iterations, globalValue does not // equal comparand, so it keeps returning @@ -234,7 +229,6 @@ public class InterlockedCompareExchange5 // here we use the object overload state = Interlocked.CompareExchange(ref globalValue, value, comparand); i++; - Thread.Sleep(10); } } public void changeGlobal2() @@ -249,4 +243,4 @@ public class myClass { a = value; } -}
\ No newline at end of file +} diff --git a/tests/src/baseservices/threading/interlocked/exchange/ExchangeTString.csproj b/tests/src/baseservices/threading/interlocked/exchange/ExchangeTString.csproj index c0b5b04874..4445ef8089 100644 --- a/tests/src/baseservices/threading/interlocked/exchange/ExchangeTString.csproj +++ b/tests/src/baseservices/threading/interlocked/exchange/ExchangeTString.csproj @@ -11,6 +11,7 @@ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> diff --git a/tests/src/baseservices/threading/interlocked/exchange/ExchangeTString_1.csproj b/tests/src/baseservices/threading/interlocked/exchange/ExchangeTString_1.csproj index 717ace21f3..5909d1c7b7 100644 --- a/tests/src/baseservices/threading/interlocked/exchange/ExchangeTString_1.csproj +++ b/tests/src/baseservices/threading/interlocked/exchange/ExchangeTString_1.csproj @@ -13,6 +13,7 @@ <CLRTestPriority>1</CLRTestPriority> <CLRTestProjectToRun>ExchangeTString.csproj</CLRTestProjectToRun> <CLRTestExecutionArguments>empty "This is a long string that I am trying to test to be sure that the Exchange can handle this long of a string. If it can not then that is bad and we will have to fix it."</CLRTestExecutionArguments> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> diff --git a/tests/src/baseservices/threading/interlocked/exchange/ExchangeTString_2.csproj b/tests/src/baseservices/threading/interlocked/exchange/ExchangeTString_2.csproj index 67935f2aa2..ede760b4a7 100644 --- a/tests/src/baseservices/threading/interlocked/exchange/ExchangeTString_2.csproj +++ b/tests/src/baseservices/threading/interlocked/exchange/ExchangeTString_2.csproj @@ -13,6 +13,7 @@ <CLRTestPriority>1</CLRTestPriority> <CLRTestProjectToRun>ExchangeTString.csproj</CLRTestProjectToRun> <CLRTestExecutionArguments>null "This is a string"</CLRTestExecutionArguments> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -33,4 +34,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/interlocked/exchange/exchange1_cti.cs b/tests/src/baseservices/threading/interlocked/exchange/exchange1_cti.cs index fb682e093b..87b1520f31 100644 --- a/tests/src/baseservices/threading/interlocked/exchange/exchange1_cti.cs +++ b/tests/src/baseservices/threading/interlocked/exchange/exchange1_cti.cs @@ -24,7 +24,6 @@ using System.Threading; public class InterlockedExchange1 { private const int c_THREADARRAT_SIZE = 10; // how many threads to spawn - private const int c_WAITTHREADSCOMPLETE = 3000; // how long main thread should sleep private static int resource = 10; // resources to be consumed private static double location = 0; // mutex being managed thru Exchange private static int entry = 0; // threads granted entry to the mutex @@ -83,10 +82,11 @@ public class InterlockedExchange1 threads[i].Start(); } - // after all threads are spawned, put the spawining thread - // to sleep for long enough that the spawned threads have - // time to complete - Thread.Sleep(c_WAITTHREADSCOMPLETE); + // Wait for all threads to complete + for (int i = 0; i < threads.Length; i++) + { + threads[i].Join(); + } // entries + denials should equal original value of resource (10) if (entry + deny == 10) diff --git a/tests/src/baseservices/threading/interlocked/exchange/exchange4_cti.cs b/tests/src/baseservices/threading/interlocked/exchange/exchange4_cti.cs index ba38b07ad2..bbbc54afcd 100644 --- a/tests/src/baseservices/threading/interlocked/exchange/exchange4_cti.cs +++ b/tests/src/baseservices/threading/interlocked/exchange/exchange4_cti.cs @@ -24,7 +24,6 @@ using System.Threading; public class InterlockedExchange4 { private const int c_THREADARRAT_SIZE = 10; // how many threads to spawn - private const int c_WAITTHREADSCOMPLETE = 2000; // how long main thread should sleep private static int resource = 10; // resources to be consumed private static Int64 location = 0; // mutex being managed thru Exchange private static int entry = 0; // threads granted entry to the mutex @@ -83,10 +82,11 @@ public class InterlockedExchange4 threads[i].Start(); } - // after all threads are spawned, put the spawining thread - // to sleep for long enough that the spawned threads have - // time to complete - Thread.Sleep(c_WAITTHREADSCOMPLETE); + // Wait for all threads to complete + for (int i = 0; i < threads.Length; i++) + { + threads[i].Join(); + } // entries + denials should equal original value of resource (10) if (entry + deny == 10) diff --git a/tests/src/baseservices/threading/interlocked/exchange/exchange5_cti.cs b/tests/src/baseservices/threading/interlocked/exchange/exchange5_cti.cs index af0da2a532..1a3b6c9fcb 100644 --- a/tests/src/baseservices/threading/interlocked/exchange/exchange5_cti.cs +++ b/tests/src/baseservices/threading/interlocked/exchange/exchange5_cti.cs @@ -24,7 +24,6 @@ using System.Threading; public class InterlockedExchange5 { private const int c_THREADARRAT_SIZE = 10; // how many threads to spawn - private const int c_WAITTHREADSCOMPLETE = 2000; // how long main thread should sleep private static int resource = 10; // resources to be consumed private static Object location = 0; // mutex being managed thru Exchange private static int entry = 0; // threads granted entry to the mutex @@ -83,10 +82,11 @@ public class InterlockedExchange5 threads[i].Start(); } - // after all threads are spawned, put the spawining thread - // to sleep for long enough that the spawned threads have - // time to complete - Thread.Sleep(c_WAITTHREADSCOMPLETE); + // Wait for all threads to complete + for (int i = 0; i < threads.Length; i++) + { + threads[i].Join(); + } // entries + denials should equal original value of resource (10) if (entry + deny == 10) diff --git a/tests/src/baseservices/threading/mutex/abandonedmutex/am01waitallneg.csproj b/tests/src/baseservices/threading/mutex/abandonedmutex/am01waitallneg.csproj index 305c6b2cfa..21663a7806 100644 --- a/tests/src/baseservices/threading/mutex/abandonedmutex/am01waitallneg.csproj +++ b/tests/src/baseservices/threading/mutex/abandonedmutex/am01waitallneg.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -31,4 +32,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/mutex/abandonedmutex/am02waitoneneg.csproj b/tests/src/baseservices/threading/mutex/abandonedmutex/am02waitoneneg.csproj index 2732314edb..97c2396dae 100644 --- a/tests/src/baseservices/threading/mutex/abandonedmutex/am02waitoneneg.csproj +++ b/tests/src/baseservices/threading/mutex/abandonedmutex/am02waitoneneg.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -31,4 +32,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/mutex/abandonedmutex/am04waitany.csproj b/tests/src/baseservices/threading/mutex/abandonedmutex/am04waitany.csproj index c2ddb9c6cf..5b221edb1a 100644 --- a/tests/src/baseservices/threading/mutex/abandonedmutex/am04waitany.csproj +++ b/tests/src/baseservices/threading/mutex/abandonedmutex/am04waitany.csproj @@ -11,6 +11,7 @@ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> <CLRTestExecutionArguments>/size:10 /pos:0</CLRTestExecutionArguments> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -33,4 +34,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/mutex/abandonedmutex/am05waitanymutex.csproj b/tests/src/baseservices/threading/mutex/abandonedmutex/am05waitanymutex.csproj index 0455a88fe8..1ee5aac442 100644 --- a/tests/src/baseservices/threading/mutex/abandonedmutex/am05waitanymutex.csproj +++ b/tests/src/baseservices/threading/mutex/abandonedmutex/am05waitanymutex.csproj @@ -11,6 +11,7 @@ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> <CLRTestExecutionArguments>/size:64 /pos:63</CLRTestExecutionArguments> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -33,4 +34,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/mutex/abandonedmutex/am06abandonall.csproj b/tests/src/baseservices/threading/mutex/abandonedmutex/am06abandonall.csproj index 7de4bb2c4e..f439180bea 100644 --- a/tests/src/baseservices/threading/mutex/abandonedmutex/am06abandonall.csproj +++ b/tests/src/baseservices/threading/mutex/abandonedmutex/am06abandonall.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/mutex/abandonedmutex/am07abandonmultiplemutex.csproj b/tests/src/baseservices/threading/mutex/abandonedmutex/am07abandonmultiplemutex.csproj index e7b5a577b9..2456bb8e45 100644 --- a/tests/src/baseservices/threading/mutex/abandonedmutex/am07abandonmultiplemutex.csproj +++ b/tests/src/baseservices/threading/mutex/abandonedmutex/am07abandonmultiplemutex.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/mutex/abandonedmutex/am08mixedarray.csproj b/tests/src/baseservices/threading/mutex/abandonedmutex/am08mixedarray.csproj index 46f140fa34..804b758c69 100644 --- a/tests/src/baseservices/threading/mutex/abandonedmutex/am08mixedarray.csproj +++ b/tests/src/baseservices/threading/mutex/abandonedmutex/am08mixedarray.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/mutex/misc/waitone1.cs b/tests/src/baseservices/threading/mutex/misc/waitone1.cs index d5a0c5cdb1..549e1ec90b 100644 --- a/tests/src/baseservices/threading/mutex/misc/waitone1.cs +++ b/tests/src/baseservices/threading/mutex/misc/waitone1.cs @@ -193,12 +193,10 @@ public class MutexWaitOne1 private void NeverReleaseMutex() { m_Mutex.WaitOne(); - // Thread.Sleep(c_DEFAULT_SLEEP_TIME); } private void DisposeMutex() { - // Thread.Sleep(c_DEFAULT_SLEEP_TIME); ((IDisposable)m_Mutex).Dispose(); } #endregion diff --git a/tests/src/baseservices/threading/mutex/misc/waitone2.csproj b/tests/src/baseservices/threading/mutex/misc/waitone2.csproj index f0fb07922b..11dcff3f05 100644 --- a/tests/src/baseservices/threading/mutex/misc/waitone2.csproj +++ b/tests/src/baseservices/threading/mutex/misc/waitone2.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -37,4 +38,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/paramthreadstart/threadstartarray.csproj b/tests/src/baseservices/threading/paramthreadstart/threadstartarray.csproj index 02e7d6c679..2d5f103bc3 100644 --- a/tests/src/baseservices/threading/paramthreadstart/threadstartarray.csproj +++ b/tests/src/baseservices/threading/paramthreadstart/threadstartarray.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -31,4 +32,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/regressions/576463/576463.csproj b/tests/src/baseservices/threading/regressions/576463/576463.csproj index d82edd7e98..35ecbaf8ce 100644 --- a/tests/src/baseservices/threading/regressions/576463/576463.csproj +++ b/tests/src/baseservices/threading/regressions/576463/576463.csproj @@ -12,6 +12,7 @@ <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <CLRTestKind>BuildAndRun</CLRTestKind> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -37,4 +38,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/threadpool/unregister/unregister01.csproj b/tests/src/baseservices/threading/threadpool/unregister/unregister01.csproj index 2cb3338d98..8cfe614259 100644 --- a/tests/src/baseservices/threading/threadpool/unregister/unregister01.csproj +++ b/tests/src/baseservices/threading/threadpool/unregister/unregister01.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -31,4 +32,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/threadpool/unregister/unregister03.csproj b/tests/src/baseservices/threading/threadpool/unregister/unregister03.csproj index adc805abd9..e89a72a31c 100644 --- a/tests/src/baseservices/threading/threadpool/unregister/unregister03.csproj +++ b/tests/src/baseservices/threading/threadpool/unregister/unregister03.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -31,4 +32,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/misc/waithandlewaitone1.csproj b/tests/src/baseservices/threading/waithandle/misc/waithandlewaitone1.csproj index 2d5f7de095..b9e9150e94 100644 --- a/tests/src/baseservices/threading/waithandle/misc/waithandlewaitone1.csproj +++ b/tests/src/baseservices/threading/waithandle/misc/waithandlewaitone1.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -37,4 +38,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex1.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex1.csproj index e07e5a258c..64bc02b7c1 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex1.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex1.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex10.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex10.csproj index f6792782c3..1afd2ab08f 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex10.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex10.csproj @@ -11,6 +11,7 @@ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> <CLRTestExecutionArguments>/size:64 /pos:63</CLRTestExecutionArguments> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -33,4 +34,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex10a.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex10a.csproj index 1bdf249bf2..25b30f2bda 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex10a.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex10a.csproj @@ -11,6 +11,7 @@ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> <CLRTestExecutionArguments>/size:64 /pos:0</CLRTestExecutionArguments> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex1a.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex1a.csproj index ddeb93614a..271b2a7506 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex1a.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex1a.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -31,4 +32,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex2.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex2.csproj index ec20162700..2402f87dd8 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex2.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex2.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex2a.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex2a.csproj index a4bcca690c..c299badb8a 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex2a.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex2a.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -31,4 +32,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex3.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex3.csproj index f349a21e2c..96103d0a3b 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex3.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex3.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex3a.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex3a.csproj index bab948d0d9..0f2db8e568 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex3a.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex3a.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -31,4 +32,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex4.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex4.csproj index b9f38688ed..3384e91a20 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex4.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex4.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex4a.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex4a.csproj index f1c250eaff..792c195665 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex4a.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex4a.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -31,4 +32,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex5.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex5.csproj index 4755860930..64c39d767a 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex5.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex5.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex5a.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex5a.csproj index 0335cc7700..f0adb55fab 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex5a.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex5a.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -31,4 +32,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex6.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex6.csproj index eb60a22a9d..8fe852d358 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex6.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex6.csproj @@ -11,6 +11,7 @@ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> <CLRTestExecutionArguments>/size:2 /pos:0</CLRTestExecutionArguments> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -33,4 +34,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex6a.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex6a.csproj index ec0e3050f7..810bc161fc 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex6a.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex6a.csproj @@ -11,6 +11,7 @@ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> <CLRTestExecutionArguments>/size:64 /pos:30</CLRTestExecutionArguments> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex7.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex7.csproj index 70cd75e984..98af403de8 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex7.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex7.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex7a.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex7a.csproj index e1d55f413d..821c2d36b6 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex7a.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex7a.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -31,4 +32,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex8.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex8.csproj index 0a2329ab4f..f871aa6ee8 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex8.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex8.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex8a.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex8a.csproj index d433e4d7f1..96cc5ebf50 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex8a.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex8a.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex9.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex9.csproj index 4d704a0096..f1de7e9d9f 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex9.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex9.csproj @@ -11,6 +11,7 @@ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> <CLRTestExecutionArguments>/size:64 /pos:63</CLRTestExecutionArguments> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -33,4 +34,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitall/waitallex9a.csproj b/tests/src/baseservices/threading/waithandle/waitall/waitallex9a.csproj index 16685fefed..014e4d0360 100644 --- a/tests/src/baseservices/threading/waithandle/waitall/waitallex9a.csproj +++ b/tests/src/baseservices/threading/waithandle/waitall/waitallex9a.csproj @@ -11,6 +11,7 @@ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> <CLRTestExecutionArguments>/size:64 /pos:0</CLRTestExecutionArguments> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex1.cs b/tests/src/baseservices/threading/waithandle/waitany/waitanyex1.cs index b55f8a0fde..46d43a85b6 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex1.cs +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex1.cs @@ -35,7 +35,7 @@ class WaitAnyEx Console.WriteLine("Waiting..."); int i = WaitHandle.WaitAny( new WaitHandle[]{myMutex, - new ManualResetEvent(false)}, 10000); + new ManualResetEvent(false)}, 30000); Console.WriteLine("WaitAny did not throw an " + "exception, i = " + i); } diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex1.csproj b/tests/src/baseservices/threading/waithandle/waitany/waitanyex1.csproj index 95748a570c..ebbfc6f9f1 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex1.csproj +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex1.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex10.cs b/tests/src/baseservices/threading/waithandle/waitany/waitanyex10.cs index bb13264d4c..48e344f5c9 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex10.cs +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex10.cs @@ -78,10 +78,9 @@ class WaitAnyEx private void AbandonAllMutexesWait() { - Mutex m = new Mutex(); foreach(WaitHandle w in wh) { - if(w.GetType() == m.GetType()) + if(w is Mutex) w.WaitOne(); else ((ManualResetEvent)w).Set(); @@ -101,4 +100,4 @@ class WaitAnyEx wh[i] = new ManualResetEvent(false); } } -}
\ No newline at end of file +} diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex10.csproj b/tests/src/baseservices/threading/waithandle/waitany/waitanyex10.csproj index e223849ff4..0ce38e9735 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex10.csproj +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex10.csproj @@ -11,6 +11,7 @@ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> <CLRTestExecutionArguments>/size:2 /pos:1</CLRTestExecutionArguments> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -33,4 +34,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex10a.cs b/tests/src/baseservices/threading/waithandle/waitany/waitanyex10a.cs index b92f81985e..c3157d7e8a 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex10a.cs +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex10a.cs @@ -78,10 +78,9 @@ class WaitAnyEx private void AbandonAllMutexesWait() { - Mutex m = new Mutex(); foreach(WaitHandle w in wh) { - if(w.GetType() == m.GetType()) + if(w is Mutex) w.WaitOne(); else ((ManualResetEvent)w).Set(); @@ -101,4 +100,4 @@ class WaitAnyEx wh[i] = new ManualResetEvent(false); } } -}
\ No newline at end of file +} diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex10a.csproj b/tests/src/baseservices/threading/waithandle/waitany/waitanyex10a.csproj index a3a139a02e..2944a8b0cb 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex10a.csproj +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex10a.csproj @@ -11,6 +11,7 @@ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> <CLRTestExecutionArguments>/size:2 /pos:1</CLRTestExecutionArguments> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex1a.csproj b/tests/src/baseservices/threading/waithandle/waitany/waitanyex1a.csproj index 3b2f75911a..ee05cb16b2 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex1a.csproj +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex1a.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -31,4 +32,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex3.cs b/tests/src/baseservices/threading/waithandle/waitany/waitanyex3.cs index e1160c5e73..fe81733a27 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex3.cs +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex3.cs @@ -29,7 +29,7 @@ class WaitAnyEx try { Console.WriteLine("Waiting..."); - int i = WaitHandle.WaitAny(wh, 10000); + int i = WaitHandle.WaitAny(wh, 30000); Console.WriteLine("WaitAny did not throw an " + "exception, i = " + i); } @@ -49,10 +49,9 @@ class WaitAnyEx private void AbandonAllMutexes() { - Mutex m = new Mutex(); foreach(WaitHandle w in wh) { - if(w.GetType() == m.GetType()) + if(w is Mutex) w.WaitOne(); } myMRE.Set(); diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex3.csproj b/tests/src/baseservices/threading/waithandle/waitany/waitanyex3.csproj index b00ea8c0cb..f5d085809a 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex3.csproj +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex3.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex3a.cs b/tests/src/baseservices/threading/waithandle/waitany/waitanyex3a.cs index f79cfa5cbf..da03f085c7 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex3a.cs +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex3a.cs @@ -49,10 +49,9 @@ class WaitAnyEx private void AbandonAllMutexes() { - Mutex m = new Mutex(); foreach(WaitHandle w in wh) { - if(w.GetType() == m.GetType()) + if(w is Mutex) w.WaitOne(); } myMRE.Set(); @@ -78,4 +77,4 @@ class WaitAnyEx } } } -}
\ No newline at end of file +} diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex3a.csproj b/tests/src/baseservices/threading/waithandle/waitany/waitanyex3a.csproj index d99c135b6a..f30bdf5c25 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex3a.csproj +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex3a.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -31,4 +32,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex5.cs b/tests/src/baseservices/threading/waithandle/waitany/waitanyex5.cs index cdd75e5f19..6d73ec6836 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex5.cs +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex5.cs @@ -30,8 +30,8 @@ class WaitAnyEx try { Console.WriteLine("Waiting..."); - i = WaitHandle.WaitAny(wh, 5000); - Console.WriteLine("WaitAny did not throw AbandonedMutexExcpetion"); + i = WaitHandle.WaitAny(wh, 30000); + Console.WriteLine("WaitAny did not throw AbandonedMutexException. Result: {0}", i); } catch(AbandonedMutexException) { @@ -49,11 +49,10 @@ class WaitAnyEx private void AbandonOneAndRelease() { - Mutex m = new Mutex(); bool bSet = false; foreach(WaitHandle w in wh) { - if(w.GetType() == m.GetType()) + if(w is Mutex) { w.WaitOne(); if(bSet) diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex5a.cs b/tests/src/baseservices/threading/waithandle/waitany/waitanyex5a.cs index 16c4e50e61..b3d29fb1e6 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex5a.cs +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex5a.cs @@ -31,7 +31,7 @@ class WaitAnyEx { Console.WriteLine("Waiting..."); i = WaitHandle.WaitAny(wh); - Console.WriteLine("WaitAny did not throw AbandonedMutexExcpetion"); + Console.WriteLine("WaitAny did not throw AbandonedMutexException. Result: {0}", i); } catch(AbandonedMutexException) { @@ -49,11 +49,10 @@ class WaitAnyEx private void AbandonOneAndRelease() { - Mutex m = new Mutex(); bool bSet = false; foreach(WaitHandle w in wh) { - if(w.GetType() == m.GetType()) + if(w is Mutex) { w.WaitOne(); if(bSet) diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex6.cs b/tests/src/baseservices/threading/waithandle/waitany/waitanyex6.cs index 0f5b58658b..181e0c53ef 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex6.cs +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex6.cs @@ -55,13 +55,17 @@ class WaitAnyEx try { Console.WriteLine("Waiting..."); - i = WaitHandle.WaitAny(wh, 5000); if(0 == iPosToAbandon) - Console.WriteLine("WaitAny didn't return an " + - "AbandonedMutexException"); + { + i = WaitHandle.WaitAny(wh, 30000); + Console.WriteLine("WaitAny did not throw AbandonedMutexException. Result: {0}", i); + } else + { + i = WaitHandle.WaitAny(wh, 10000); // Expected to pass iRet = 100; + } } catch(AbandonedMutexException) { @@ -94,4 +98,4 @@ class WaitAnyEx wh[i] = new Mutex(false, Common.GetUniqueName()); } } -}
\ No newline at end of file +} diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex7.cs b/tests/src/baseservices/threading/waithandle/waitany/waitanyex7.cs index cc3108d0f2..74e56be146 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex7.cs +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex7.cs @@ -28,7 +28,7 @@ class WaitAnyEx try { Console.WriteLine("Waiting..."); - int i = WaitHandle.WaitAny(wh, 10000); + int i = WaitHandle.WaitAny(wh, 30000); Console.WriteLine("WaitAny did not throw an " + "exception, i = " + i); } @@ -48,10 +48,9 @@ class WaitAnyEx private void AbandonAllMutexes() { - Mutex m = new Mutex(); foreach(WaitHandle w in wh) { - if(w.GetType() == m.GetType()) + if(w is Mutex) w.WaitOne(); } myMRE.Set(); diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex7.csproj b/tests/src/baseservices/threading/waithandle/waitany/waitanyex7.csproj index 7bd9eef6a6..de9c88c44d 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex7.csproj +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex7.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex7a.cs b/tests/src/baseservices/threading/waithandle/waitany/waitanyex7a.cs index 903b83c372..736ce14fca 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex7a.cs +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex7a.cs @@ -48,10 +48,9 @@ class WaitAnyEx private void AbandonAllMutexes() { - Mutex m = new Mutex(); foreach(WaitHandle w in wh) { - if(w.GetType() == m.GetType()) + if(w is Mutex) w.WaitOne(); } myMRE.Set(); diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex7a.csproj b/tests/src/baseservices/threading/waithandle/waitany/waitanyex7a.csproj index 69937cff6b..ec2cb5251b 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex7a.csproj +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex7a.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -31,4 +32,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex8.cs b/tests/src/baseservices/threading/waithandle/waitany/waitanyex8.cs index 358ae5162b..22398358ce 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex8.cs +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex8.cs @@ -34,7 +34,7 @@ class WaitAnyEx try { Console.WriteLine("Waiting..."); - int i = WaitHandle.WaitAny(wh, 5000); + int i = WaitHandle.WaitAny(wh, 30000); Console.WriteLine("WaitAny did not throw an " + "exception, i = " + i); } diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex9.cs b/tests/src/baseservices/threading/waithandle/waitany/waitanyex9.cs index 76b3006829..7af91355a4 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex9.cs +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex9.cs @@ -58,7 +58,7 @@ class WaitAnyEx try { Console.WriteLine("Waiting..."); - int i = WaitHandle.WaitAny(wh, 10000); + int i = WaitHandle.WaitAny(wh, 30000); Console.WriteLine("WaitAny did not throw an " + "exception, i = " + i); } @@ -78,10 +78,9 @@ class WaitAnyEx private void AbandonAllMutexesWait() { - Mutex m = new Mutex(); foreach(WaitHandle w in wh) { - if(w.GetType() == m.GetType()) + if(w is Mutex) w.WaitOne(); } myMRE.Set(); @@ -99,4 +98,4 @@ class WaitAnyEx wh[i] = new ManualResetEvent(false); } } -}
\ No newline at end of file +} diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex9.csproj b/tests/src/baseservices/threading/waithandle/waitany/waitanyex9.csproj index 4cb70cbf51..9f17ad6e23 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex9.csproj +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex9.csproj @@ -11,6 +11,7 @@ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> <CLRTestExecutionArguments>/size:2 /pos:1</CLRTestExecutionArguments> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -33,4 +34,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex9a.cs b/tests/src/baseservices/threading/waithandle/waitany/waitanyex9a.cs index 1c5817f9e0..38637a9779 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex9a.cs +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex9a.cs @@ -78,10 +78,9 @@ class WaitAnyEx private void AbandonAllMutexesWait() { - Mutex m = new Mutex(); foreach(WaitHandle w in wh) { - if(w.GetType() == m.GetType()) + if(w is Mutex) w.WaitOne(); } myMRE.Set(); @@ -99,4 +98,4 @@ class WaitAnyEx wh[i] = new ManualResetEvent(false); } } -}
\ No newline at end of file +} diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex9a.csproj b/tests/src/baseservices/threading/waithandle/waitany/waitanyex9a.csproj index 4939c2e075..81b64effd3 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex9a.csproj +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex9a.csproj @@ -11,6 +11,7 @@ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> <CLRTestExecutionArguments>/size:64 /pos:30</CLRTestExecutionArguments> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitone/waitoneex1.csproj b/tests/src/baseservices/threading/waithandle/waitone/waitoneex1.csproj index e0c574f8a3..071412e0bd 100644 --- a/tests/src/baseservices/threading/waithandle/waitone/waitoneex1.csproj +++ b/tests/src/baseservices/threading/waithandle/waitone/waitoneex1.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitone/waitoneex2.csproj b/tests/src/baseservices/threading/waithandle/waitone/waitoneex2.csproj index 5f8a271c5f..79649b4897 100644 --- a/tests/src/baseservices/threading/waithandle/waitone/waitoneex2.csproj +++ b/tests/src/baseservices/threading/waithandle/waitone/waitoneex2.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/threading/waithandle/waitone/waitoneex3.csproj b/tests/src/baseservices/threading/waithandle/waitone/waitoneex3.csproj index 5ec416d050..176e3f5a65 100644 --- a/tests/src/baseservices/threading/waithandle/waitone/waitoneex3.csproj +++ b/tests/src/baseservices/threading/waithandle/waitone/waitoneex3.csproj @@ -10,6 +10,7 @@ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <CLRTestPriority>1</CLRTestPriority> + <GCStressIncompatible>true</GCStressIncompatible> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -32,4 +33,4 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> </PropertyGroup> -</Project>
\ No newline at end of file +</Project> |