Give a lot more timing latitude to some of the timing tests. Busy buildbots are hitting the timing limits too often.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@174539 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7fa0ca75e5
commit
66a48c5ad5
@ -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;
|
||||
|
@ -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()
|
||||
|
@ -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();
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user