[tests] Increase a bunch of wait limits.

- Basically I just ran the thread tests many many times on a busy machine and
   bumped the timeouts whenever I hit a test failure.

 - This is obviously subpar, but is the best I can do without the tests being
   rewritten to not depend on arbitrary timeouts.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@174721 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2013-02-08 17:41:19 +00:00
parent 5920cfc403
commit fe14b970ac
11 changed files with 12 additions and 12 deletions

View File

@ -68,7 +68,7 @@ void f()
}
else
{
assert(t1 - t0 - Clock::duration(250) < Clock::duration(5));
assert(t1 - t0 - Clock::duration(250) < Clock::duration(50));
assert(test2 == 0);
}
++runs;

View File

@ -36,7 +36,7 @@ void f()
t1 = Clock::now();
}
ns d = t1 - t0 - ms(250);
assert(d < ns(2500000)); // within 2.5ms
assert(d < ms(50)); // within 50ms
}
int main()

View File

@ -35,7 +35,7 @@ void f()
t1 = Clock::now();
}
ns d = t1 - t0 - ms(250);
assert(d < ns(2500000)); // within 2.5ms
assert(d < ms(200)); // within 200ms
}
int main()

View File

@ -35,7 +35,7 @@ void f()
t1 = Clock::now();
}
ns d = t1 - t0 - ms(250);
assert(d < ns(2500000)); // within 2.5ms
assert(d < ms(50)); // within 50ms
}
int main()

View File

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

View File

@ -35,7 +35,7 @@ void f()
time_point t1 = Clock::now();
m.unlock();
ns d = t1 - t0 - ms(250);
assert(d < ns(2500000)); // within 2.5ms
assert(d < ms(50)); // within 50ms
}
int main()

View File

@ -37,7 +37,7 @@ void f()
time_point t1 = Clock::now();
m.unlock();
ns d = t1 - t0 - ms(250);
assert(d < ns(50000000)); // within 50ms
assert(d < ms(200)); // within 200ms
}
int main()

View File

@ -39,7 +39,7 @@ void f()
m.unlock();
m.unlock();
ns d = t1 - t0 - ms(250);
assert(d < ns(50000000)); // within 50ms
assert(d < ms(200)); // within 200ms
}
int main()

View File

@ -37,7 +37,7 @@ void f()
time_point t1 = Clock::now();
m.unlock();
ns d = t1 - t0 - ms(250);
assert(d < ns(50000000)); // within 50ms
assert(d < ms(200)); // within 200ms
}
int main()

View File

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

View File

@ -39,7 +39,7 @@ void f()
m.unlock();
m.unlock();
ns d = t1 - t0 - ms(250);
assert(d < ns(50000000)); // within 50ms
assert(d < ms(200)); // within 200ms
}
int main()