diff options
| author | Howard Hinnant <hhinnant@apple.com> | 2010-10-07 16:25:31 +0000 |
|---|---|---|
| committer | Howard Hinnant <hhinnant@apple.com> | 2010-10-07 16:25:31 +0000 |
| commit | 149f659af39d08e71e78e91ab91f1957291de248 (patch) | |
| tree | 1bace1f1fc92ac77241c11803f47cf41c25a17f4 | |
| parent | a845022ddd5cf98e54793e0701f3dbf0fed043c4 (diff) | |
| download | bcm5719-llvm-149f659af39d08e71e78e91ab91f1957291de248.tar.gz bcm5719-llvm-149f659af39d08e71e78e91ab91f1957291de248.zip | |
Relaxing timing test a bit to avoid spurious test failures under load
llvm-svn: 115920
| -rw-r--r-- | libcxx/test/thread/thread.mutex/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_for.pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/thread/thread.mutex/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_for.pass.cpp b/libcxx/test/thread/thread.mutex/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_for.pass.cpp index 292673c14a4..00d69b6f73b 100644 --- a/libcxx/test/thread/thread.mutex/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_for.pass.cpp +++ b/libcxx/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() |

