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
This commit is contained in:
Howard Hinnant 2010-10-07 16:25:31 +00:00
parent 77868b9d9a
commit 251aaa1064

@ -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()