Skip to content

Commit 99f3bee

Browse files
domin144saturn691
authored andcommitted
[libc++] tests with picolibc: XFAIL uses of atomics
1 parent 0269a3a commit 99f3bee

File tree

8 files changed

+35
-0
lines changed

8 files changed

+35
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Disable all of the atomics tests if the correct feature is not available.
2+
if "has-no-atomics" in config.available_features:
3+
config.unsupported = True
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Disable all of the atomics tests if the correct feature is not available.
2+
if "has-no-atomics" in config.available_features:
3+
config.unsupported = True

libcxx/test/libcxx/thread/thread.stoptoken/intrusive_shared_ptr.pass.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
//
99

10+
// XFAIL: has-no-atomics
11+
1012
// UNSUPPORTED: c++03, c++11, c++14, c++17
1113
// ADDITIONAL_COMPILE_FLAGS: -Wno-private-header
1214

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Disable all of the atomics tests if the correct feature is not available.
2+
if "has-no-atomics" in config.available_features:
3+
config.unsupported = True
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Disable all of the atomics tests if the correct feature is not available.
2+
if "has-no-atomics" in config.available_features:
3+
config.unsupported = True
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Disable all of the atomics tests if the correct feature is not available.
2+
if "has-no-atomics" in config.available_features:
3+
config.unsupported = True
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Disable all of the atomics tests if the correct feature is not available.
2+
if "has-no-atomics" in config.available_features:
3+
config.unsupported = True

libcxx/utils/libcxx/test/features.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,21 @@ def _mingwSupportsModules(cfg):
211211
""",
212212
),
213213
),
214+
Feature(
215+
name="has-no-atomics",
216+
when=lambda cfg: not sourceBuilds(
217+
cfg,
218+
"""
219+
#include <atomic>
220+
std::atomic_uint x;
221+
int main(int, char**) { (void)x.load(); return 0; }
222+
""",
223+
),
224+
actions=[
225+
AddFeature("availability-pmr-missing"),
226+
AddFeature("libcpp-has-no-incomplete-pstl"),
227+
],
228+
),
214229
# Tests that require 64-bit architecture
215230
Feature(
216231
name="32-bit-pointer",

0 commit comments

Comments
 (0)