Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable 2 memory heavy array tests for 2 distros #57108

Merged
merged 2 commits into from
Aug 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions src/libraries/System.Runtime/tests/System/ArrayTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4746,7 +4746,14 @@ public static void Copy_LargeMultiDimensionalArray()
// If this test is run in a 32-bit process, the large allocation will fail.
if (IntPtr.Size != sizeof(long))
{
return;
throw new SkipTestException("Unable to allocate enough memory");
}

if (PlatformDetection.IsUbuntu1804 || PlatformDetection.IsSLES)
{
// On these platforms, occasionally the OOM Killer will terminate the
// tests when they're using ~1GB, before they complete.
throw new SkipTestException("Prone to OOM killer");
}

short[,] a = AllocateLargeMDArray(2, 2_000_000_000);
Expand All @@ -4765,7 +4772,14 @@ public static void Clear_LargeMultiDimensionalArray()
// If this test is run in a 32-bit process, the large allocation will fail.
if (IntPtr.Size != sizeof(long))
{
return;
throw new SkipTestException("Unable to allocate enough memory");
}

if (PlatformDetection.IsUbuntu1804 || PlatformDetection.IsSLES)
{
// On these platforms, occasionally the OOM Killer will terminate the
// tests when they're using ~1GB, before they complete.
throw new SkipTestException("Prone to OOM killer");
}

short[,] a = AllocateLargeMDArray(2, 2_000_000_000);
Expand Down