Loosen up the timing requirements on 4 more tests.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@161289 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4b2f4203a2
commit
6886dd19c4
@ -50,7 +50,7 @@ void f()
|
||||
}
|
||||
else
|
||||
{
|
||||
assert(t1 - t0 - milliseconds(250) < milliseconds(5));
|
||||
assert(t1 - t0 - milliseconds(250) < milliseconds(10));
|
||||
assert(test2 == 0);
|
||||
}
|
||||
++runs;
|
||||
|
@ -58,7 +58,7 @@ void f()
|
||||
}
|
||||
else
|
||||
{
|
||||
assert(t1 - t0 - milliseconds(250) < milliseconds(2));
|
||||
assert(t1 - t0 - milliseconds(250) < milliseconds(10));
|
||||
assert(test2 == 0);
|
||||
}
|
||||
++runs;
|
||||
|
@ -37,7 +37,7 @@ void f()
|
||||
m.unlock();
|
||||
m.unlock();
|
||||
ns d = t1 - t0 - ms(250);
|
||||
assert(d < ns(2500000)); // within 2.5ms
|
||||
assert(d < ms(10)); // within 10ms
|
||||
}
|
||||
|
||||
int main()
|
||||
|
@ -37,7 +37,7 @@ void f()
|
||||
m.unlock();
|
||||
m.unlock();
|
||||
ns d = t1 - t0 - ms(250);
|
||||
assert(d < ns(2500000)); // within 2.5ms
|
||||
assert(d < ms(10)); // within 10ms
|
||||
}
|
||||
|
||||
int main()
|
||||
|
Loading…
Reference in New Issue
Block a user