diff --git a/test/thread/thread.condition/thread.condition.condvarany/wait_for_pred.pass.cpp b/test/thread/thread.condition/thread.condition.condvarany/wait_for_pred.pass.cpp index 856297dba..bc4b7c342 100644 --- a/test/thread/thread.condition/thread.condition.condvarany/wait_for_pred.pass.cpp +++ b/test/thread/thread.condition/thread.condition.condvarany/wait_for_pred.pass.cpp @@ -61,7 +61,7 @@ void f() } else { - assert(t1 - t0 - milliseconds(250) < milliseconds(5)); + assert(t1 - t0 - milliseconds(250) < milliseconds(50)); assert(test2 == 0); } ++runs; diff --git a/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/mutex_duration.pass.cpp b/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/mutex_duration.pass.cpp index 137c913e2..8370c563f 100644 --- a/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/mutex_duration.pass.cpp +++ b/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/mutex_duration.pass.cpp @@ -34,7 +34,7 @@ void f1() assert(lk.owns_lock() == true); time_point t1 = Clock::now(); ns d = t1 - t0 - ms(250); - assert(d < ns(5000000)); // within 5ms + assert(d < ms(50)); // within 50ms } void f2() @@ -44,7 +44,7 @@ void f2() assert(lk.owns_lock() == false); time_point t1 = Clock::now(); ns d = t1 - t0 - ms(250); - assert(d < ns(5000000)); // within 5ms + assert(d < ms(50)); // within 50ms } int main() diff --git a/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/lock.pass.cpp b/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/lock.pass.cpp index fa50c7b3e..c101d8901 100644 --- a/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/lock.pass.cpp +++ b/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/lock.pass.cpp @@ -34,7 +34,7 @@ void f() time_point t1 = Clock::now(); assert(lk.owns_lock() == true); ns d = t1 - t0 - ms(250); - assert(d < ns(2500000)); // within 2.5ms + assert(d < ms(25)); // within 25ms try { lk.lock(); diff --git a/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/try_lock_until.pass.cpp b/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/try_lock_until.pass.cpp index ac70d4a98..f19dec267 100644 --- a/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/try_lock_until.pass.cpp +++ b/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/try_lock_until.pass.cpp @@ -34,7 +34,7 @@ void f1() time_point t1 = Clock::now(); m.unlock(); ns d = t1 - t0 - ms(250); - assert(d < ns(5000000)); // within 5ms + assert(d < ms(50)); // within 50ms } void f2() @@ -43,7 +43,7 @@ void f2() assert(m.try_lock_until(Clock::now() + ms(250)) == false); time_point t1 = Clock::now(); ns d = t1 - t0 - ms(250); - assert(d < ns(5000000)); // within 5ms + assert(d < ms(50)); // within 50ms } int main() diff --git a/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_until.pass.cpp b/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_until.pass.cpp index bfda9edce..e5e916637 100644 --- a/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_until.pass.cpp +++ b/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_until.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 < ms(50)); // within 50ms } void f2() @@ -45,7 +45,7 @@ void f2() assert(m.try_lock_until(Clock::now() + ms(250)) == false); time_point t1 = Clock::now(); ns d = t1 - t0 - ms(250); - assert(d < ns(5000000)); // within 5ms + assert(d < ms(50)); // within 50ms } int main()