diff options
author | Koundinya Veluri <kouvel@users.noreply.github.com> | 2018-01-26 19:39:51 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-26 19:39:51 -0800 |
commit | a6577abdb65713ee02ed2382b618be86177c7634 (patch) | |
tree | f16b47b96f4fc4857ee7220d529467aa9e1d5288 /tests | |
parent | 7000d7988d065ed7d5817c1612111b54e9eaf6fb (diff) | |
download | coreclr-a6577abdb65713ee02ed2382b618be86177c7634.tar.gz coreclr-a6577abdb65713ee02ed2382b618be86177c7634.tar.bz2 coreclr-a6577abdb65713ee02ed2382b618be86177c7634.zip |
Fix some tests under GCStress (#16048)
- Disabled one test, it takes far too long under GCStress
- For another, added a second call to WaitForPendingFinalizers() to ensure correspondence with a GC.Collect() call
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/CoreMangLib/system/span/SlowTailCallArgs.csproj | 3 | ||||
-rw-r--r-- | tests/src/baseservices/compilerservices/dynamicobjectproperties/dev10_535767.cs | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/src/CoreMangLib/system/span/SlowTailCallArgs.csproj b/tests/src/CoreMangLib/system/span/SlowTailCallArgs.csproj index 69e86c9166..6afa0ee0e6 100644 --- a/tests/src/CoreMangLib/system/span/SlowTailCallArgs.csproj +++ b/tests/src/CoreMangLib/system/span/SlowTailCallArgs.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' "></PropertyGroup> @@ -26,4 +27,4 @@ <Compile Include="SlowTailCallArgs.cs" /> </ItemGroup> <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> -</Project>
\ No newline at end of file +</Project> diff --git a/tests/src/baseservices/compilerservices/dynamicobjectproperties/dev10_535767.cs b/tests/src/baseservices/compilerservices/dynamicobjectproperties/dev10_535767.cs index 19c15b587e..cb7f360b80 100644 --- a/tests/src/baseservices/compilerservices/dynamicobjectproperties/dev10_535767.cs +++ b/tests/src/baseservices/compilerservices/dynamicobjectproperties/dev10_535767.cs @@ -238,6 +238,7 @@ class TestSet // which nodes were collected). GC.Collect(); GC.WaitForPendingFinalizers(); + GC.WaitForPendingFinalizers(); // the above call may correspond to a GC prior to the Collect above, call it again // Calculate our own view of which nodes should be alive or dead. Use a simple mark array for this. // Once the algorithm is complete a true value at a given index in the array indicates a node that |