From fe4c9dd747bdfae4916dfd21869c306b3592b523 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Fri, 20 Jul 2012 19:48:05 +0000 Subject: [PATCH] Relax the tolerances on some timing tests. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@160566 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../thread.condition.condvar/wait_until_pred.pass.cpp | 2 +- .../thread.condition.condvarany/wait_until_pred.pass.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/thread/thread.condition/thread.condition.condvar/wait_until_pred.pass.cpp b/test/thread/thread.condition/thread.condition.condvar/wait_until_pred.pass.cpp index c9efb8d9..84214252 100644 --- a/test/thread/thread.condition/thread.condition.condvar/wait_until_pred.pass.cpp +++ b/test/thread/thread.condition/thread.condition.condvar/wait_until_pred.pass.cpp @@ -75,7 +75,7 @@ void f() } else { - assert(t1 - t0 - Clock::duration(250) < Clock::duration(2)); + assert(t1 - t0 - Clock::duration(250) < Clock::duration(5)); assert(test2 == 0); assert(!r); } diff --git a/test/thread/thread.condition/thread.condition.condvarany/wait_until_pred.pass.cpp b/test/thread/thread.condition/thread.condition.condvarany/wait_until_pred.pass.cpp index 7c349319..6a7a132a 100644 --- a/test/thread/thread.condition/thread.condition.condvarany/wait_until_pred.pass.cpp +++ b/test/thread/thread.condition/thread.condition.condvarany/wait_until_pred.pass.cpp @@ -79,7 +79,7 @@ void f() } else { - assert(t1 - t0 - Clock::duration(250) < Clock::duration(2)); + assert(t1 - t0 - Clock::duration(250) < Clock::duration(5)); assert(test2 == 0); assert(!r); }