Skip to content

Commit 1197fca

Browse files
authored
[libcxx][test] Change UNSUPPORTED to XFAIL for target-related failures (#81513)
This is a followup from this discussion #80735 (comment) to mark targets that were initially marked as UNSUPPORTED with an XFAIL instead.
1 parent 3b70387 commit 1197fca

File tree

34 files changed

+33
-46
lines changed

34 files changed

+33
-46
lines changed

libcxx/test/libcxx/input.output/filesystems/class.directory_entry/directory_entry.mods/last_write_time.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// UNSUPPORTED: windows
1919

2020
// This test assumes that time is stored as a 64 bit value when on MVS it is stored as 32 bit
21-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
21+
// XFAIL: target={{.+}}-zos{{.*}}
2222

2323
// <filesystem>
2424

libcxx/test/libcxx/language.support/support.dynamic/libcpp_deallocate.sh.cpp

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

1212
// Libc++ when built for z/OS doesn't contain the aligned allocation functions,
1313
// nor does the dynamic library shipped with z/OS.
14-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
14+
// XFAIL: target={{.+}}-zos{{.*}}
1515

1616
// XFAIL: sanitizer-new-delete && !hwasan
1717

libcxx/test/libcxx/language.support/support.dynamic/new_faligned_allocation.pass.cpp

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

1212
// Libc++ when built for z/OS doesn't contain the aligned allocation functions,
1313
// nor does the dynamic library shipped with z/OS.
14-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
14+
// XFAIL: target={{.+}}-zos{{.*}}
1515

1616
// REQUIRES: -faligned-allocation
1717
// ADDITIONAL_COMPILE_FLAGS: -faligned-allocation

libcxx/test/libcxx/thread/thread.condition/PR30202_notify_from_pthread_created_thread.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// UNSUPPORTED: c++03
1515

1616
// PR30202 was fixed starting in macosx10.13.
17-
// UNSUPPORTED: stdlib=apple-libc++ && target={{.+}}-apple-macosx10.{{9|10|11|12}}
17+
// XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx10.{{9|10|11|12}}
1818

1919
// <condition_variable>
2020

libcxx/test/libcxx/thread/thread.threads/thread.thread.this/sleep_for.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Until 58a0a70fb2f1, this_thread::sleep_for could sometimes get interrupted
1212
// by signals and this test would fail spuriously. Disable the test on the
1313
// corresponding system libraries.
14-
// UNSUPPORTED: stdlib=apple-libc++ && target={{.+}}-apple-macosx10.{{9|10|11}}
14+
// XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx10.{{9|10|11}}
1515

1616
// ALLOW_RETRIES: 3
1717

libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.remove_all/toctou.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
// UNSUPPORTED: stdlib=apple-libc++ && target={{.+}}-apple-macosx12.{{0|1|2}}
3737

3838
// Windows doesn't support the necessary APIs to mitigate this issue.
39-
// UNSUPPORTED: target={{.+}}-windows-{{.+}}
39+
// XFAIL: target={{.+}}-windows-{{.+}}
4040

4141
#include <cstdio>
4242
#include <filesystem>

libcxx/test/std/language.support/cmp/cmp.alg/strong_order_long_double.verify.cpp

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

1111
// The following platforms have sizeof(long double) == sizeof(double), so this test doesn't apply to them.
1212
// This test does apply to aarch64 where Arm's AAPCS64 is followed. There they are different sizes.
13-
// UNSUPPORTED: target={{arm64|arm64e|armv(7|8)(l|m)?|powerpc|powerpc64}}-{{.+}}
13+
// XFAIL: target={{arm64|arm64e|armv(7|8)(l|m)?|powerpc|powerpc64}}-{{.+}}
1414

1515
// MSVC configurations have long double equal to regular double on all
1616
// architectures.
17-
// UNSUPPORTED: target={{.+}}-pc-windows-msvc
17+
// XFAIL: target={{.+}}-pc-windows-msvc
1818

1919
// ARM/AArch64 MinGW also has got long double equal to regular double, just
2020
// like MSVC (thus match both MinGW and MSVC here, for those architectures).
21-
// UNSUPPORTED: target={{aarch64|armv7}}-{{.*}}-windows-{{.+}}
21+
// XFAIL: target={{aarch64|armv7}}-{{.*}}-windows-{{.+}}
2222

2323
// Android's 32-bit x86 target has long double equal to regular double.
24-
// UNSUPPORTED: target=i686-{{.+}}-android{{.*}}
24+
// XFAIL: target=i686-{{.+}}-android{{.*}}
2525

2626
// <compare>
2727

libcxx/test/std/language.support/support.dynamic/align_val_t.pass.cpp

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

1313
// Libc++ when built for z/OS doesn't contain the aligned allocation functions,
1414
// nor does the dynamic library shipped with z/OS.
15-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
15+
// XFAIL: target={{.+}}-zos{{.*}}
1616

1717
#include <new>
1818
#include <type_traits>

libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/delete_align_val_t_replace.pass.cpp

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

1313
// Libc++ when built for z/OS doesn't contain the aligned allocation functions,
1414
// nor does the dynamic library shipped with z/OS.
15-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
15+
// XFAIL: target={{.+}}-zos{{.*}}
1616

1717
#include <new>
1818
#include <cstddef>

libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new.size_align.pass.cpp

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

1616
// Libc++ when built for z/OS doesn't contain the aligned allocation functions,
1717
// nor does the dynamic library shipped with z/OS.
18-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
18+
// XFAIL: target={{.+}}-zos{{.*}}
1919

2020
#include <new>
2121
#include <cstddef>

libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new.size_align.replace.indirect.pass.cpp

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

1818
// Libc++ when built for z/OS doesn't contain the aligned allocation functions,
1919
// nor does the dynamic library shipped with z/OS.
20-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
20+
// XFAIL: target={{.+}}-zos{{.*}}
2121

2222
#include <new>
2323
#include <cstddef>

libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new.size_align.replace.pass.cpp

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

1616
// Libc++ when built for z/OS doesn't contain the aligned allocation functions,
1717
// nor does the dynamic library shipped with z/OS.
18-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
18+
// XFAIL: target={{.+}}-zos{{.*}}
1919

2020
#include <new>
2121
#include <cstddef>

libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new.size_align_nothrow.pass.cpp

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

1616
// Libc++ when built for z/OS doesn't contain the aligned allocation functions,
1717
// nor does the dynamic library shipped with z/OS.
18-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
18+
// XFAIL: target={{.+}}-zos{{.*}}
1919

2020
#include <new>
2121
#include <cstddef>

libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new.size_align_nothrow.replace.indirect.pass.cpp

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

2323
// Libc++ when built for z/OS doesn't contain the aligned allocation functions,
2424
// nor does the dynamic library shipped with z/OS.
25-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
25+
// XFAIL: target={{.+}}-zos{{.*}}
2626

2727
#include <new>
2828
#include <cstddef>

libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new.size_align_nothrow.replace.pass.cpp

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

1616
// Libc++ when built for z/OS doesn't contain the aligned allocation functions,
1717
// nor does the dynamic library shipped with z/OS.
18-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
18+
// XFAIL: target={{.+}}-zos{{.*}}
1919

2020
#include <new>
2121
#include <cstddef>

libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/nodiscard.verify.cpp

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

2020
// Libc++ when built for z/OS doesn't contain the aligned allocation functions,
2121
// nor does the dynamic library shipped with z/OS.
22-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
22+
// XFAIL: target={{.+}}-zos{{.*}}
2323

2424
#include <new>
2525

libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/delete_align_val_t_replace.pass.cpp

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

1313
// Libc++ when built for z/OS doesn't contain the aligned allocation functions,
1414
// nor does the dynamic library shipped with z/OS.
15-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
15+
// XFAIL: target={{.+}}-zos{{.*}}
1616

1717
#include <new>
1818
#include <cstddef>

libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/new.size_align.pass.cpp

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

1616
// Libc++ when built for z/OS doesn't contain the aligned allocation functions,
1717
// nor does the dynamic library shipped with z/OS.
18-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
18+
// XFAIL: target={{.+}}-zos{{.*}}
1919

2020
#include <new>
2121
#include <cstddef>

libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/new.size_align.replace.pass.cpp

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

1616
// Libc++ when built for z/OS doesn't contain the aligned allocation functions,
1717
// nor does the dynamic library shipped with z/OS.
18-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
18+
// XFAIL: target={{.+}}-zos{{.*}}
1919

2020
#include <new>
2121
#include <cstddef>

libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/new.size_align_nothrow.pass.cpp

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

1616
// Libc++ when built for z/OS doesn't contain the aligned allocation functions,
1717
// nor does the dynamic library shipped with z/OS.
18-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
18+
// XFAIL: target={{.+}}-zos{{.*}}
1919

2020
#include <new>
2121
#include <cstddef>

libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/new.size_align_nothrow.replace.indirect.pass.cpp

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

2222
// Libc++ when built for z/OS doesn't contain the aligned allocation functions,
2323
// nor does the dynamic library shipped with z/OS.
24-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
24+
// XFAIL: target={{.+}}-zos{{.*}}
2525

2626
#include <new>
2727
#include <cstddef>

libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/new.size_align_nothrow.replace.pass.cpp

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

1616
// Libc++ when built for z/OS doesn't contain the aligned allocation functions,
1717
// nor does the dynamic library shipped with z/OS.
18-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
18+
// XFAIL: target={{.+}}-zos{{.*}}
1919

2020
#include <new>
2121
#include <cstddef>

libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/nodiscard.verify.cpp

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

2020
// Libc++ when built for z/OS doesn't contain the aligned allocation functions,
2121
// nor does the dynamic library shipped with z/OS.
22-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
22+
// XFAIL: target={{.+}}-zos{{.*}}
2323

2424
#include <new>
2525

libcxx/test/std/language.support/support.rtti/type.info/type_info.equal.pass.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212

1313
// UNSUPPORTED: no-rtti
1414

15-
// When we build for Windows on top of the VC runtime, `typeinfo::operator==` may not
16-
// be `constexpr` (depending on the version of the VC runtime). So this test can fail.
17-
// UNSUPPORTED: target={{.+}}-windows-msvc && !libcpp-no-vcruntime
18-
1915
#include <typeinfo>
2016
#include <cassert>
2117

libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_in.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// Test is intended to convert between UTF8 and UTF16/32, it will fail on
2121
// z/OS since at default char type on z/OS is EBCDIC character which has
2222
// value different from ASCII character.
23-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
23+
// XFAIL: target={{.+}}-zos{{.*}}
2424

2525
#include <locale>
2626
#include <string>

libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_length.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// Test is intended to convert between UTF8 and UTF16/32, it will fail on
1919
// z/OS since at default char type on z/OS is EBCDIC character which has
2020
// value different from ASCII character.
21-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
21+
// XFAIL: target={{.+}}-zos{{.*}}
2222

2323
#include <locale>
2424
#include <cassert>

libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_out.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// Test is intended to convert between UTF8 and UTF16/32, it will fail on
2121
// z/OS since at default char type on z/OS is EBCDIC character which has
2222
// value different from ASCII character.
23-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
23+
// XFAIL: target={{.+}}-zos{{.*}}
2424

2525
#include <locale>
2626
#include <string>

libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_in.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// Test is intended to convert between UTF8 and UTF16/32, it will fail on
2121
// z/OS since at default char type on z/OS is EBCDIC character which has
2222
// value different from ASCII character.
23-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
23+
// XFAIL: target={{.+}}-zos{{.*}}
2424

2525
#include <locale>
2626
#include <string>

libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_length.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// Test is intended to convert between UTF8 and UTF16/32, it will fail on
1919
// z/OS since at default char type on z/OS is EBCDIC character which has
2020
// value different from ASCII character.
21-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
21+
// XFAIL: target={{.+}}-zos{{.*}}
2222

2323
#include <locale>
2424
#include <cassert>

libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_out.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// Test is intended to convert between UTF8 and UTF16/32, it will fail on
2121
// z/OS since at default char type on z/OS is EBCDIC character which has
2222
// value different from ASCII character.
23-
// UNSUPPORTED: target={{.+}}-zos{{.*}}
23+
// XFAIL: target={{.+}}-zos{{.*}}
2424

2525
#include <locale>
2626
#include <string>

libcxx/test/std/utilities/format/format.functions/escaped_output.unicode.pass.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
// This version runs the test when the platform has Unicode support.
1212
// UNSUPPORTED: libcpp-has-no-unicode
1313

14-
// TODO FMT Investigate Windows issues.
15-
// UNSUPPORTED: msvc, target={{.+}}-windows-gnu
16-
1714
// TODO FMT This test should not require std::to_chars(floating-point)
1815
// XFAIL: availability-fp_to_chars-missing
1916

libcxx/test/std/utilities/format/format.range/format.range.fmtstr/format.pass.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77

88
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
99

10-
// TODO FMT Investigate why this fails.
11-
// UNSUPPORTED: stdlib=apple-libc++ && target={{.+}}-apple-macosx{{10.9|10.10|10.11|10.12|10.13|10.14|10.15|11.0|12.0}}
12-
1310
// <format>
1411

1512
// template<ranges::input_range R, class charT>

libcxx/test/std/utilities/format/format.range/format.range.fmtstr/parse.pass.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77

88
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
99

10-
// TODO FMT Investigate why this fails.
11-
// UNSUPPORTED: stdlib=apple-libc++ && target={{.+}}-apple-macosx{{10.9|10.10|10.11|10.12|10.13|10.14|10.15|11.0|12.0}}
12-
1310
// <format>
1411

1512
// template<ranges::input_range R, class charT>

libcxx/test/std/utilities/memory/temporary.buffer/overaligned.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Aligned allocations are not supported on macOS < 10.13
1212
// Note: use 'unsupported' instead of 'xfail' to ensure
1313
// we won't pass prior to c++17.
14-
// UNSUPPORTED: stdlib=apple-libc++ && target={{.+}}-apple-macosx10.{{9|10|11|12}}
14+
// XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx10.{{9|10|11|12}}
1515

1616
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DISABLE_DEPRECATION_WARNINGS
1717

0 commit comments

Comments
 (0)