Эх сурвалжийг харах

Relaxing timing test a bit to avoid spurious test failures under load

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@115920 91177308-0d34-0410-b5e6-96231b3b80d8
Howard Hinnant 15 жил өмнө
parent
commit
251aaa1064

+ 2 - 2
test/thread/thread.mutex/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_for.pass.cpp

@@ -36,7 +36,7 @@ void f1()
     m.unlock();
     m.unlock();
     ns d = t1 - t0 - ms(250);
-    assert(d < ns(5000000));  // within 5ms
+    assert(d < ns(50000000));  // within 50ms
 }
 
 void f2()
@@ -45,7 +45,7 @@ void f2()
     assert(m.try_lock_for(ms(250)) == false);
     time_point t1 = Clock::now();
     ns d = t1 - t0 - ms(250);
-    assert(d < ns(5000000));  // within 5ms
+    assert(d < ns(50000000));  // within 50ms
 }
 
 int main()