Skip to content

Commit 000d2b8

Browse files
committed
[libc++][hardening][NFC] Rework the Lit feature for detecting the hardening mode.
Make it a multichoice string to closer mirror the CMake variable. This allows writing `UNSUPPORTED: libcpp-hardening-mode=unchecked` rather than `UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode`. Differential Revision: https://reviews.llvm.org/D155906
1 parent b82c2b9 commit 000d2b8

File tree

110 files changed

+111
-112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+111
-112
lines changed

libcxx/test/libcxx/algorithms/alg.sorting/assert.min.max.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// REQUIRES: has-unix-headers
1212
// UNSUPPORTED: c++03, c++11, c++14, c++17
13-
// UNSUPPORTED: !libcpp-has-debug-mode
13+
// UNSUPPORTED: !libcpp-hardening-mode=debug
1414
// XFAIL: availability-verbose_abort-missing
1515

1616
#include <algorithm>

libcxx/test/libcxx/algorithms/alg.sorting/assert.sort.invalid_comparator.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

1111
// REQUIRES: has-unix-headers
1212
// UNSUPPORTED: c++03, c++11, c++14, c++17
13-
// UNSUPPORTED: !libcpp-has-debug-mode
13+
// UNSUPPORTED: !libcpp-hardening-mode=debug
1414
// XFAIL: availability-verbose_abort-missing
1515
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG_STRICT_WEAK_ORDERING_CHECK
1616
// When the debug mode is enabled, this test fails because we actually catch on the fly that the comparator is not
1717
// a strict-weak ordering before we catch that we'd dereference out-of-bounds inside std::sort, which leads to different
1818
// errors than the ones tested below.
19-
// XFAIL: libcpp-has-debug-mode
19+
// XFAIL: libcpp-hardening-mode=debug
2020

2121
// This test uses a specific combination of an invalid comparator and sequence of values to
2222
// ensure that our sorting functions do not go out-of-bounds and satisfy strict weak ordering in that case.

libcxx/test/libcxx/assertions/modes/debug.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// This test ensures that assertions trigger without the user having to do anything when the debug mode has been enabled
1010
// by default.
1111

12-
// UNSUPPORTED: !libcpp-has-debug-mode
12+
// REQUIRES: libcpp-hardening-mode=debug
1313
// `check_assertion.h` is only available starting from C++11.
1414
// UNSUPPORTED: c++03
1515
// `check_assertion.h` requires Unix headers.

libcxx/test/libcxx/assertions/modes/debug_mode_disabled_in_tu.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
// This test ensures that we can disable the debug mode on a per-TU basis regardless of how the library was built.
1010

11-
// UNSUPPORTED: libcpp-has-hardened-mode
11+
// UNSUPPORTED: libcpp-hardening-mode=hardened
1212
// ADDITIONAL_COMPILE_FLAGS: -Wno-macro-redefined -D_LIBCPP_ENABLE_DEBUG_MODE=0
1313

1414
#include <cassert>

libcxx/test/libcxx/assertions/modes/debug_mode_enabled_in_tu.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// This test ensures that we can enable the debug mode on a per-TU basis regardless of how the library was built.
1010

1111
// Hardened mode would additionally trigger the error that hardened and debug modes are mutually exclusive.
12-
// UNSUPPORTED: libcpp-has-hardened-mode
12+
// UNSUPPORTED: libcpp-hardening-mode=hardened
1313
// `check_assertion.h` is only available starting from C++11 and requires Unix headers.
1414
// UNSUPPORTED: c++03, !has-unix-headers
1515
// The ability to set a custom abort message is required to compare the assertion message.

libcxx/test/libcxx/assertions/modes/debug_mode_not_1_or_0.verify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// This test verifies that setting the debug mode to a value other than `0` or `1` triggers a compile-time error.
1010

1111
// Hardened mode would additionally trigger the error that hardened and debug modes are mutually exclusive.
12-
// UNSUPPORTED: libcpp-has-hardened-mode
12+
// UNSUPPORTED: libcpp-hardening-mode=hardened
1313
// Modules build produces a different error ("Could not build module 'std'").
1414
// UNSUPPORTED: modules-build
1515
// ADDITIONAL_COMPILE_FLAGS: -Wno-macro-redefined -D_LIBCPP_ENABLE_DEBUG_MODE=2

libcxx/test/libcxx/assertions/modes/enabling_assertions_enables_hardened_mode.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// The ability to set a custom abort message is required to compare the assertion message.
1515
// XFAIL: availability-verbose_abort-missing
1616
// Debug mode is mutually exclusive with hardened mode.
17-
// UNSUPPORTED: libcpp-has-debug-mode
17+
// UNSUPPORTED: libcpp-hardening-mode=debug
1818
// Ignore the warning about `_LIBCPP_ENABLE_ASSERTIONS` being deprecated.
1919
// ADDITIONAL_COMPILE_FLAGS: -Wno-error -D_LIBCPP_ENABLE_ASSERTIONS=1
2020

libcxx/test/libcxx/assertions/modes/hardened.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// This test ensures that assertions trigger without the user having to do anything when the hardened mode has been
1010
// enabled by default.
1111

12-
// UNSUPPORTED: !libcpp-has-hardened-mode
12+
// REQUIRES: libcpp-hardening-mode=hardened
1313
// `check_assertion.h` is only available starting from C++11.
1414
// UNSUPPORTED: c++03
1515
// `check_assertion.h` requires Unix headers.

libcxx/test/libcxx/assertions/modes/hardened_mode_disabled_in_tu.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
// This test ensures that we can disable the hardened mode on a per-TU basis regardless of how the library was built.
1010

11-
// UNSUPPORTED: libcpp-has-debug-mode
11+
// UNSUPPORTED: libcpp-hardening-mode=debug
1212
// ADDITIONAL_COMPILE_FLAGS: -Wno-macro-redefined -D_LIBCPP_ENABLE_HARDENED_MODE=0
1313

1414
#include <cassert>

libcxx/test/libcxx/assertions/modes/hardened_mode_enabled_in_tu.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// This test ensures that we can enable the hardened mode on a per-TU basis regardless of how the library was built.
1010

1111
// Debug mode would additionally trigger the error that hardened and debug modes are mutually exclusive.
12-
// UNSUPPORTED: libcpp-has-debug-mode
12+
// UNSUPPORTED: libcpp-hardening-mode=debug
1313
// `check_assertion.h` is only available starting from C++11.
1414
// UNSUPPORTED: c++03
1515
// `check_assertion.h` requires Unix headers.

libcxx/test/libcxx/assertions/modes/hardened_mode_not_1_or_0.verify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// This test verifies that setting the hardened mode to a value other than `0` or `1` triggers a compile-time error.
1010

1111
// Debug mode would additionally trigger the error that hardened and debug modes are mutually exclusive.
12-
// UNSUPPORTED: libcpp-has-debug-mode
12+
// UNSUPPORTED: libcpp-hardening-mode=debug
1313
// Modules build produces a different error ("Could not build module 'std'").
1414
// UNSUPPORTED: modules-build
1515
// ADDITIONAL_COMPILE_FLAGS: -Wno-macro-redefined -D_LIBCPP_ENABLE_HARDENED_MODE=2

libcxx/test/libcxx/assertions/modes/unchecked.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// This test checks that if no hardening mode is defined (i.e., in the unchecked mode), by default assertions aren't
1010
// triggered.
1111

12-
// UNSUPPORTED: libcpp-has-hardened-mode, libcpp-has-debug-mode
12+
// REQUIRES: libcpp-hardening-mode=unchecked
1313

1414
#include <cassert>
1515

libcxx/test/libcxx/containers/sequences/array/array.zero/assert.back.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
// REQUIRES: has-unix-headers
1010
// UNSUPPORTED: c++03
11-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
11+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1212
// XFAIL: availability-verbose_abort-missing
1313

1414
// test that array<T, 0>::back() triggers an assertion

libcxx/test/libcxx/containers/sequences/array/array.zero/assert.front.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
// REQUIRES: has-unix-headers
1010
// UNSUPPORTED: c++03
11-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
11+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1212
// XFAIL: availability-verbose_abort-missing
1313

1414
// test that array<T, 0>::back() triggers an assertion

libcxx/test/libcxx/containers/sequences/array/array.zero/assert.subscript.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
// REQUIRES: has-unix-headers
1010
// UNSUPPORTED: c++03
11-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
11+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1212
// XFAIL: availability-verbose_abort-missing
1313

1414
// test that array<T, 0>::operator[] triggers an assertion

libcxx/test/libcxx/containers/sequences/deque/assert.pop_back.empty.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// REQUIRES: has-unix-headers
1414
// UNSUPPORTED: c++03
15-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
15+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1616
// XFAIL: availability-verbose_abort-missing
1717

1818
#include <deque>

libcxx/test/libcxx/containers/sequences/list/list.modifiers/assert.erase_iter.end.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// REQUIRES: has-unix-headers
1414
// UNSUPPORTED: c++03
15-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
15+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1616
// XFAIL: availability-verbose_abort-missing
1717

1818
#include <list>

libcxx/test/libcxx/containers/sequences/list/list.modifiers/assert.pop_back.empty.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// REQUIRES: has-unix-headers
1414
// UNSUPPORTED: c++03
15-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
15+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1616
// XFAIL: availability-verbose_abort-missing
1717

1818
#include <list>

libcxx/test/libcxx/containers/sequences/vector/assert.back.empty.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// REQUIRES: has-unix-headers
1414
// UNSUPPORTED: c++03
15-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
15+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1616
// XFAIL: availability-verbose_abort-missing
1717

1818
#include <vector>

libcxx/test/libcxx/containers/sequences/vector/assert.cback.empty.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// REQUIRES: has-unix-headers
1414
// UNSUPPORTED: c++03
15-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
15+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1616
// XFAIL: availability-verbose_abort-missing
1717

1818
#include <vector>

libcxx/test/libcxx/containers/sequences/vector/assert.cfront.empty.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// REQUIRES: has-unix-headers
1414
// UNSUPPORTED: c++03
15-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
15+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1616
// XFAIL: availability-verbose_abort-missing
1717

1818
#include <vector>

libcxx/test/libcxx/containers/sequences/vector/assert.cindex.oob.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// REQUIRES: has-unix-headers
1414
// UNSUPPORTED: c++03
15-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
15+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1616
// XFAIL: availability-verbose_abort-missing
1717

1818
#include <vector>

libcxx/test/libcxx/containers/sequences/vector/assert.front.empty.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// REQUIRES: has-unix-headers
1414
// UNSUPPORTED: c++03
15-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
15+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1616
// XFAIL: availability-verbose_abort-missing
1717

1818
#include <vector>

libcxx/test/libcxx/containers/sequences/vector/assert.index.oob.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// REQUIRES: has-unix-headers
1414
// UNSUPPORTED: c++03
15-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
15+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1616
// XFAIL: availability-verbose_abort-missing
1717

1818
#include <vector>

libcxx/test/libcxx/containers/sequences/vector/assert.pop_back.empty.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// REQUIRES: has-unix-headers
1414
// UNSUPPORTED: c++03
15-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
15+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1616
// XFAIL: availability-verbose_abort-missing
1717

1818
#include <vector>

libcxx/test/libcxx/containers/unord/unord.map/assert.bucket.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// REQUIRES: has-unix-headers
1414
// UNSUPPORTED: c++03
15-
// UNSUPPORTED: !libcpp-has-debug-mode
15+
// UNSUPPORTED: !libcpp-hardening-mode=debug
1616
// XFAIL: availability-verbose_abort-missing
1717

1818
#include <unordered_map>

libcxx/test/libcxx/containers/unord/unord.map/assert.bucket_size.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
// REQUIRES: has-unix-headers
1818
// UNSUPPORTED: c++03
19-
// UNSUPPORTED: !libcpp-has-debug-mode
19+
// UNSUPPORTED: !libcpp-hardening-mode=debug
2020
// XFAIL: availability-verbose_abort-missing
2121

2222
#include <unordered_map>

libcxx/test/libcxx/containers/unord/unord.map/assert.max_load_factor.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
// REQUIRES: has-unix-headers
1919
// UNSUPPORTED: c++03
20-
// UNSUPPORTED: !libcpp-has-debug-mode
20+
// UNSUPPORTED: !libcpp-hardening-mode=debug
2121
// XFAIL: availability-verbose_abort-missing
2222

2323
#include <unordered_map>

libcxx/test/libcxx/containers/unord/unord.multimap/assert.bucket.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
// REQUIRES: has-unix-headers
1818
// UNSUPPORTED: c++03
19-
// UNSUPPORTED: !libcpp-has-debug-mode
19+
// UNSUPPORTED: !libcpp-hardening-mode=debug
2020
// XFAIL: availability-verbose_abort-missing
2121

2222
#include <unordered_map>

libcxx/test/libcxx/containers/unord/unord.multimap/assert.bucket_size.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
// REQUIRES: has-unix-headers
1818
// UNSUPPORTED: c++03
19-
// UNSUPPORTED: !libcpp-has-debug-mode
19+
// UNSUPPORTED: !libcpp-hardening-mode=debug
2020
// XFAIL: availability-verbose_abort-missing
2121

2222
#include <unordered_map>

libcxx/test/libcxx/containers/unord/unord.multimap/assert.max_load_factor.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
// REQUIRES: has-unix-headers
1919
// UNSUPPORTED: c++03
20-
// UNSUPPORTED: !libcpp-has-debug-mode
20+
// UNSUPPORTED: !libcpp-hardening-mode=debug
2121
// XFAIL: availability-verbose_abort-missing
2222

2323
#include <unordered_map>

libcxx/test/libcxx/containers/unord/unord.multiset/assert.bucket.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
// REQUIRES: has-unix-headers
1818
// UNSUPPORTED: c++03
19-
// UNSUPPORTED: !libcpp-has-debug-mode
19+
// UNSUPPORTED: !libcpp-hardening-mode=debug
2020
// XFAIL: availability-verbose_abort-missing
2121

2222
#include <unordered_set>

libcxx/test/libcxx/containers/unord/unord.multiset/assert.bucket_size.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
// REQUIRES: has-unix-headers
1818
// UNSUPPORTED: c++03
19-
// UNSUPPORTED: !libcpp-has-debug-mode
19+
// UNSUPPORTED: !libcpp-hardening-mode=debug
2020
// XFAIL: availability-verbose_abort-missing
2121

2222
#include <unordered_set>

libcxx/test/libcxx/containers/unord/unord.multiset/assert.max_load_factor.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
// REQUIRES: has-unix-headers
1919
// UNSUPPORTED: c++03
20-
// UNSUPPORTED: !libcpp-has-debug-mode
20+
// UNSUPPORTED: !libcpp-hardening-mode=debug
2121
// XFAIL: availability-verbose_abort-missing
2222

2323
#include <unordered_set>

libcxx/test/libcxx/containers/unord/unord.set/assert.bucket.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
// REQUIRES: has-unix-headers
1818
// UNSUPPORTED: c++03
19-
// UNSUPPORTED: !libcpp-has-debug-mode
19+
// UNSUPPORTED: !libcpp-hardening-mode=debug
2020
// XFAIL: availability-verbose_abort-missing
2121

2222
#include <unordered_set>

libcxx/test/libcxx/containers/unord/unord.set/assert.bucket_size.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
// REQUIRES: has-unix-headers
1818
// UNSUPPORTED: c++03
19-
// UNSUPPORTED: !libcpp-has-debug-mode
19+
// UNSUPPORTED: !libcpp-hardening-mode=debug
2020
// XFAIL: availability-verbose_abort-missing
2121

2222
#include <unordered_set>

libcxx/test/libcxx/containers/unord/unord.set/assert.max_load_factor.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
// REQUIRES: has-unix-headers
1919
// UNSUPPORTED: c++03
20-
// UNSUPPORTED: !libcpp-has-debug-mode
20+
// UNSUPPORTED: !libcpp-hardening-mode=debug
2121
// XFAIL: availability-verbose_abort-missing
2222

2323
#include <unordered_set>

libcxx/test/libcxx/containers/views/mdspan/extents/assert.conversion.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//===----------------------------------------------------------------------===//
77
// REQUIRES: has-unix-headers
88
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
9-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
9+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1010
// XFAIL: availability-verbose_abort-missing
1111

1212
// <mdspan>

libcxx/test/libcxx/containers/views/mdspan/extents/assert.ctor_from_array.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//===----------------------------------------------------------------------===//
77
// REQUIRES: has-unix-headers
88
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
9-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
9+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1010
// XFAIL: availability-verbose_abort-missing
1111

1212
// <mdspan>

libcxx/test/libcxx/containers/views/mdspan/extents/assert.ctor_from_integral.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//===----------------------------------------------------------------------===//
77
// REQUIRES: has-unix-headers
88
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
9-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
9+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1010
// XFAIL: availability-verbose_abort-missing
1111

1212
// <mdspan>

libcxx/test/libcxx/containers/views/mdspan/extents/assert.ctor_from_span.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//===----------------------------------------------------------------------===//
77
// REQUIRES: has-unix-headers
88
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
9-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
9+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1010
// XFAIL: availability-verbose_abort-missing
1111

1212
// Test construction from span:

libcxx/test/libcxx/containers/views/mdspan/extents/assert.obs.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//===----------------------------------------------------------------------===//
77
// REQUIRES: has-unix-headers
88
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
9-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
9+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1010
// XFAIL: availability-verbose_abort-missing
1111

1212
// <mdspan>

libcxx/test/libcxx/containers/views/mdspan/layout_left/assert.conversion.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
// REQUIRES: has-unix-headers
1010
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
11-
// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
11+
// UNSUPPORTED: libcpp-hardening-mode=unchecked
1212
// XFAIL: availability-verbose_abort-missing
1313

1414
// <mdspan>

0 commit comments

Comments
 (0)