[libc++][test] Add missing <concepts> to is_always_lock_free test#105966
Merged
[libc++][test] Add missing <concepts> to is_always_lock_free test#105966
Conversation
Member
|
@llvm/pr-subscribers-libcxx Author: Stephan T. Lavavej (StephanTLavavej) ChangesThere were a couple of problems with this test added by #99570:
Full diff: https://github.com/llvm/llvm-project/pull/105966.diff 1 Files Affected:
diff --git a/libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.cpp b/libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.pass.cpp
similarity index 99%
rename from libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.cpp
rename to libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.pass.cpp
index 2dc7f5c7654193..db17221e515d3a 100644
--- a/libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.cpp
+++ b/libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.pass.cpp
@@ -17,6 +17,7 @@
#include <atomic>
#include <cassert>
+#include <concepts>
#include <cstddef>
#include "test_macros.h"
|
Member
Author
|
Now that the test is correctly named, it's also being picked up by libc++'s test harness and experiencing other problems: I'm not tooled up to fix these (it's passing for MSVC's STL), can a real libc++ dev help? |
Member
ldionne
approved these changes
Aug 26, 2024
Member
|
Jeez. I merged without noticing that this PR was also renaming the test (triggering other failures). |
Member
is_always_lock_free test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There were a couple of problems with this test added by #99570:
is_always_lock_free.cppinstead ofis_always_lock_free.pass.cpp.MEOW.pass.cppspecifically.std::same_aswithout including<concepts>.