Use available memory instead of physical memory as metric for allocation-heavy tests
[mono.git] / mcs / class / corlib / Test / System / StringTest.cs
index a45c7ec198cb62b2fb068a2a13b743b86f535288..be5e7984757b64a30bba3b7274a9f86edfab970f 100644 (file)
@@ -109,8 +109,8 @@ public class StringTest
                if (!Environment.Is64BitProcess)
                        Assert.Ignore("This test cannot run on a 32-bit system.");
 
-               // Require 6 GB physical RAM, for the 4GB string plus 2GB headroom
-               var pc = new PerformanceCounter ("Mono Memory", "Total Physical Memory");
+               // Require 6 GB available RAM, for the 4GB string plus 2GB headroom
+               var pc = new PerformanceCounter ("Mono Memory", "Available Physical Memory");
 
                if (pc.RawValue < 6L*1024L*1024L*1024L)
                        Assert.Ignore("This machine may not have enough RAM to run this test.");