From 251aaa1064308efd1bf4b4517dfa93d8849e6f93 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Thu, 7 Oct 2010 16:25:31 +0000 Subject: [PATCH] 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 --- .../thread.timedmutex.recursive/try_lock_for.pass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/thread/thread.mutex/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_for.pass.cpp b/test/thread/thread.mutex/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_for.pass.cpp index 292673c14..00d69b6f7 100644 --- a/test/thread/thread.mutex/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_for.pass.cpp +++ b/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()