-
Notifications
You must be signed in to change notification settings - Fork 12.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[libc++][test] Add missing <concepts> to is_always_lock_free test #105966
Conversation
@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"
|
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? |
Jeez. I merged without noticing that this PR was also renaming the test (triggering other failures). |
is_always_lock_free
test…vm#105966) That test was using std::same_as without including <concepts>.
…vm#105966) That test was using std::same_as without including <concepts>.
There were a couple of problems with this test added by #99570:
is_always_lock_free.cpp
instead ofis_always_lock_free.pass.cpp
.MEOW.pass.cpp
specifically.std::same_as
without including<concepts>
.