Attempt to prevent flaky thread.mutex tests by once again increasing timing tolerances
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@248993 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -35,10 +35,10 @@ ms WaitTime = ms(250);
|
||||
// Thread sanitizer causes more overhead and will sometimes cause this test
|
||||
// to fail. To prevent this we give Thread sanitizer more time to complete the
|
||||
// test.
|
||||
#if !TEST_HAS_FEATURE(thread_sanitizer)
|
||||
#if !defined(TEST_HAS_SANITIZERS)
|
||||
ms Tolerance = ms(50);
|
||||
#else
|
||||
ms Tolerance = ms(100);
|
||||
ms Tolerance = ms(50 * 5);
|
||||
#endif
|
||||
|
||||
std::shared_timed_mutex m;
|
||||
|
||||
@@ -38,10 +38,10 @@ ms WaitTime = ms(250);
|
||||
// Thread sanitizer causes more overhead and will sometimes cause this test
|
||||
// to fail. To prevent this we give Thread sanitizer more time to complete the
|
||||
// test.
|
||||
#if !TEST_HAS_FEATURE(thread_sanitizer)
|
||||
#if !defined(TEST_HAS_SANITIZERS)
|
||||
ms Tolerance = ms(50);
|
||||
#else
|
||||
ms Tolerance = ms(100);
|
||||
ms Tolerance = ms(50 * 5);
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -38,13 +38,12 @@ ms WaitTime = ms(250);
|
||||
// Thread sanitizer causes more overhead and will sometimes cause this test
|
||||
// to fail. To prevent this we give Thread sanitizer more time to complete the
|
||||
// test.
|
||||
#if !TEST_HAS_FEATURE(thread_sanitizer)
|
||||
#if !defined(TEST_HAS_SANITIZERS)
|
||||
ms Tolerance = ms(50);
|
||||
#else
|
||||
ms Tolerance = ms(100);
|
||||
ms Tolerance = ms(50 * 5);
|
||||
#endif
|
||||
|
||||
|
||||
void f1()
|
||||
{
|
||||
time_point t0 = Clock::now();
|
||||
|
||||
@@ -37,10 +37,10 @@ ms WaitTime = ms(250);
|
||||
// Thread sanitizer causes more overhead and will sometimes cause this test
|
||||
// to fail. To prevent this we give Thread sanitizer more time to complete the
|
||||
// test.
|
||||
#if !TEST_HAS_FEATURE(thread_sanitizer)
|
||||
#if !defined(TEST_HAS_SANITIZERS)
|
||||
ms Tolerance = ms(25);
|
||||
#else
|
||||
ms Tolerance = ms(75);
|
||||
ms Tolerance = ms(25 * 5);
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user