[libcxx-commits] [libcxx] [libc++][test] fix sporiadic test failure in condition_variable notify_all test (PR #97622)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 3 12:17:13 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 298e292a76289d93f7c1a80c26e354830c6080e4 2fa1335913ee6eb980b3a8541c5b2aa5c224725a -- libcxx/test/std/thread/thread.condition/thread.condition.condvar/notify_all.pass.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/test/std/thread/thread.condition/thread.condition.condvar/notify_all.pass.cpp b/libcxx/test/std/thread/thread.condition/thread.condition.condvar/notify_all.pass.cpp
index 995e4c9f72..90b1c4b8b4 100644
--- a/libcxx/test/std/thread/thread.condition/thread.condition.condvar/notify_all.pass.cpp
+++ b/libcxx/test/std/thread/thread.condition/thread.condition.condvar/notify_all.pass.cpp
@@ -59,7 +59,7 @@ int main(int, char**)
     std::thread t1 = support::make_test_thread(f1);
     std::thread t2 = support::make_test_thread(f2);
     while (ready_count.load() != 2) {
-        std::this_thread::sleep_for(std::chrono::milliseconds(100));
+      std::this_thread::sleep_for(std::chrono::milliseconds(100));
     }
     {
         std::unique_lock<std::mutex>lk(mut);

``````````

</details>


https://github.com/llvm/llvm-project/pull/97622


More information about the libcxx-commits mailing list