[cfe-commits] [libcxx] r115920 - /libcxx/trunk/test/thread/thread.mutex/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_for.pass.cpp
Howard Hinnant
hhinnant at apple.com
Thu Oct 7 09:25:31 PDT 2010
Author: hhinnant
Date: Thu Oct 7 11:25:31 2010
New Revision: 115920
URL: http://llvm.org/viewvc/llvm-project?rev=115920&view=rev
Log:
Relaxing timing test a bit to avoid spurious test failures under load
Modified:
libcxx/trunk/test/thread/thread.mutex/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_for.pass.cpp
Modified: libcxx/trunk/test/thread/thread.mutex/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_for.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/thread/thread.mutex/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_for.pass.cpp?rev=115920&r1=115919&r2=115920&view=diff
==============================================================================
--- libcxx/trunk/test/thread/thread.mutex/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_for.pass.cpp (original)
+++ libcxx/trunk/test/thread/thread.mutex/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_for.pass.cpp Thu Oct 7 11:25:31 2010
@@ -36,7 +36,7 @@
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 @@
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()
More information about the cfe-commits
mailing list