Skip to content

Commit 96d01d0

Browse files
domin144nashif
authored andcommitted
tests with picolibc: XFAIL uses of atomics
1 parent bb3ba4f commit 96d01d0

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

1214
#include <__stop_token/intrusive_shared_ptr.h>

libcxx/test/std/atomics/lit.local.cfg

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
@@ -215,6 +215,21 @@ def _mingwSupportsModules(cfg):
215215
""",
216216
),
217217
),
218+
Feature(
219+
name="has-no-atomics",
220+
when=lambda cfg: not sourceBuilds(
221+
cfg,
222+
"""
223+
#include <atomic>
224+
std::atomic_uint x;
225+
int main(int, char**) { (void)x.load(); return 0; }
226+
""",
227+
),
228+
actions=[
229+
AddFeature("availability-pmr-missing"),
230+
AddFeature("libcpp-has-no-incomplete-pstl"),
231+
],
232+
),
218233
# Tests that require 64-bit architecture
219234
Feature(
220235
name="32-bit-pointer",

0 commit comments

Comments
 (0)