From 70b716db965af2c34726e484914f6d65e18f4b40 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Tue, 17 Jan 2023 03:54:32 +0100 Subject: [PATCH] [libc++] Add ALLOW_RETRIES to a few flaky tests Fixes #59464 Reviewed By: ldionne, Mordante, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D141885 --- libcxx/test/std/thread/futures/futures.async/async.pass.cpp | 2 ++ .../thread/thread.condition/notify_all_at_thread_exit_lwg3343.pass.cpp | 2 ++ .../thread.sharedtimedmutex.class/try_lock_shared_for.pass.cpp | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libcxx/test/std/thread/futures/futures.async/async.pass.cpp b/libcxx/test/std/thread/futures/futures.async/async.pass.cpp index 4e328db..b40fedf 100644 --- a/libcxx/test/std/thread/futures/futures.async/async.pass.cpp +++ b/libcxx/test/std/thread/futures/futures.async/async.pass.cpp @@ -9,6 +9,8 @@ // UNSUPPORTED: no-threads // UNSUPPORTED: c++03 +// ALLOW_RETRIES: 3 + // // template diff --git a/libcxx/test/std/thread/thread.condition/notify_all_at_thread_exit_lwg3343.pass.cpp b/libcxx/test/std/thread/thread.condition/notify_all_at_thread_exit_lwg3343.pass.cpp index 7e3b2d3..a49a438 100644 --- a/libcxx/test/std/thread/thread.condition/notify_all_at_thread_exit_lwg3343.pass.cpp +++ b/libcxx/test/std/thread/thread.condition/notify_all_at_thread_exit_lwg3343.pass.cpp @@ -8,6 +8,8 @@ // // UNSUPPORTED: no-threads +// ALLOW_RETRIES: 3 + // notify_all_at_thread_exit(...) requires move semantics to transfer the unique_lock. // UNSUPPORTED: c++03 diff --git a/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock_shared_for.pass.cpp b/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock_shared_for.pass.cpp index c652e20..1f8795e 100644 --- a/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock_shared_for.pass.cpp +++ b/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock_shared_for.pass.cpp @@ -9,7 +9,7 @@ // UNSUPPORTED: no-threads // UNSUPPORTED: c++03, c++11 -// ALLOW_RETRIES: 2 +// ALLOW_RETRIES: 3 // shared_timed_mutex was introduced in macosx10.12 // UNSUPPORTED: use_system_cxx_lib && target={{.+}}-apple-macosx10.{{9|10|11}} -- 2.7.4