[libcxx-commits] [libcxx] [libc++] Fix flakiness in `atomic_notify_all.pass.cpp` (PR #70436)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 27 02:25:21 PDT 2023


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 6c3bc910588f962e49470098ccc3b13c29cae493 99ed4f7b920ef1d80969b4a5fdd1cc989cf84bde -- libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.wait/atomic_notify_all.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.wait/atomic_notify_all.pass.cpp b/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.wait/atomic_notify_all.pass.cpp
index b96691735..2c8161eed 100644
--- a/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.wait/atomic_notify_all.pass.cpp
+++ b/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.wait/atomic_notify_all.pass.cpp
@@ -58,7 +58,7 @@ struct TestFn {
       static_assert(noexcept(std::atomic_notify_all(&a)), "");
 
       std::atomic<bool> is_ready[2] = {false, false};
-      auto f = [&](int index) {
+      auto f                        = [&](int index) {
         assert(std::atomic_load(&a) == T(2));
         is_ready[index].store(true);
 

``````````

</details>


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


More information about the libcxx-commits mailing list