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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user