Pārlūkot izejas kodu

Loosen up the timing requirements on 4 more tests.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@161289 91177308-0d34-0410-b5e6-96231b3b80d8
Howard Hinnant 13 gadi atpakaļ
vecāks
revīzija
6886dd19c4

+ 1 - 1
test/thread/thread.condition/thread.condition.condvar/wait_for.pass.cpp

@@ -50,7 +50,7 @@ void f()
     }
     else
     {
-        assert(t1 - t0 - milliseconds(250) < milliseconds(5));
+        assert(t1 - t0 - milliseconds(250) < milliseconds(10));
         assert(test2 == 0);
     }
     ++runs;

+ 1 - 1
test/thread/thread.condition/thread.condition.condvar/wait_for_pred.pass.cpp

@@ -58,7 +58,7 @@ void f()
     }
     else
     {
-        assert(t1 - t0 - milliseconds(250) < milliseconds(2));
+        assert(t1 - t0 - milliseconds(250) < milliseconds(10));
         assert(test2 == 0);
     }
     ++runs;

+ 1 - 1
test/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.recursive/lock.pass.cpp

@@ -37,7 +37,7 @@ void f()
     m.unlock();
     m.unlock();
     ns d = t1 - t0 - ms(250);
-    assert(d < ns(2500000));  // within 2.5ms
+    assert(d < ms(10));  // within 10ms
 }
 
 int main()

+ 1 - 1
test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/lock.pass.cpp

@@ -37,7 +37,7 @@ void f()
     m.unlock();
     m.unlock();
     ns d = t1 - t0 - ms(250);
-    assert(d < ns(2500000));  // within 2.5ms
+    assert(d < ms(10));  // within 10ms
 }
 
 int main()