Skip to content

Commit d0fe294

Browse files
[SystemZ][z/OS][libcxx] mark aligned allocation tests UNSUPPORTED on z/OS
zOS doesn't support aligned allocation, so these tests are failing. For more details on aligned allocation in zOS, see https://reviews.llvm.org/D87611 and https://reviews.llvm.org/D90178 Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D102798
1 parent 7231446 commit d0fe294

12 files changed

+48
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
// in a link error.
1919
// XFAIL: use_system_cxx_lib && target={{.+}}-apple-macosx10.{{9|10|11|12}}
2020

21+
// Libcxx when built for z/OS doesn't contain the aligned allocation functions,
22+
// nor does the dynamic library shipped with z/OS.
23+
// UNSUPPORTED: target={{.+}}-zos{{.*}}
24+
2125
// AppleClang < 10 incorrectly warns that aligned allocation is not supported
2226
// even when it is supported.
2327
// UNSUPPORTED: apple-clang-9

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
// in a link error.
1919
// XFAIL: use_system_cxx_lib && target={{.+}}-apple-macosx10.{{9|10|11|12}}
2020

21+
// Libcxx when built for z/OS doesn't contain the aligned allocation functions,
22+
// nor does the dynamic library shipped with z/OS.
23+
// UNSUPPORTED: target={{.+}}-zos{{.*}}
24+
2125
// REQUIRES: -faligned-allocation
2226
// ADDITIONAL_COMPILE_FLAGS: -faligned-allocation
2327

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
// yet provide aligned new/delete definitions so this test fails to compile/link.
2626
// XFAIL: LIBCXX-WINDOWS-FIXME
2727

28+
// Libcxx when built for z/OS doesn't contain the aligned allocation functions,
29+
// nor does the dynamic library shipped with z/OS.
30+
// UNSUPPORTED: target={{.+}}-zos{{.*}}
31+
2832
#include <new>
2933
#include <cstddef>
3034
#include <cstdlib>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
// UNSUPPORTED: clang-5, clang-6, clang-7
1919
// XFAIL: use_system_cxx_lib && target={{.+}}-apple-macosx10.{{9|10|11|12|13}}
2020

21+
// Libcxx when built for z/OS doesn't contain the aligned allocation functions,
22+
// nor does the dynamic library shipped with z/OS.
23+
// UNSUPPORTED: target={{.+}}-zos{{.*}}
24+
2125
// test operator new
2226

2327
#include <new>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
// UNSUPPORTED: clang-5, clang-6, clang-7
1919
// XFAIL: use_system_cxx_lib && target={{.+}}-apple-macosx10.{{9|10|11|12|13}}
2020

21+
// Libcxx when built for z/OS doesn't contain the aligned allocation functions,
22+
// nor does the dynamic library shipped with z/OS.
23+
// UNSUPPORTED: target={{.+}}-zos{{.*}}
24+
2125
// test operator new (nothrow)
2226

2327
#include <new>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
// UNSUPPORTED: clang-5, clang-6, clang-7
1717
// XFAIL: use_system_cxx_lib && target={{.+}}-apple-macosx10.{{9|10|11|12|13}}
1818

19+
// Libcxx when built for z/OS doesn't contain the aligned allocation functions,
20+
// nor does the dynamic library shipped with z/OS.
21+
// UNSUPPORTED: target={{.+}}-zos{{.*}}
22+
1923
// test operator new nothrow by replacing only operator new
2024

2125
#include <new>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
// UNSUPPORTED: c++03, c++11, c++14
1010
// UNSUPPORTED: sanitizer-new-delete
1111

12+
// Libcxx when built for z/OS doesn't contain the aligned allocation functions,
13+
// nor does the dynamic library shipped with z/OS.
14+
// UNSUPPORTED: target={{.+}}-zos{{.*}}
15+
1216
// test operator new replacement
1317

1418
#include <new>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
// yet provide aligned new/delete definitions so this test fails to compile/link.
2626
// XFAIL: LIBCXX-WINDOWS-FIXME
2727

28+
// Libcxx when built for z/OS doesn't contain the aligned allocation functions,
29+
// nor does the dynamic library shipped with z/OS.
30+
// UNSUPPORTED: target={{.+}}-zos{{.*}}
31+
2832
#include <new>
2933
#include <cstddef>
3034
#include <cstdlib>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
// asan and msan will not call the new handler.
1919
// UNSUPPORTED: sanitizer-new-delete
2020

21+
// Libcxx when built for z/OS doesn't contain the aligned allocation functions,
22+
// nor does the dynamic library shipped with z/OS.
23+
// UNSUPPORTED: target={{.+}}-zos{{.*}}
24+
2125
// test operator new
2226

2327
#include <new>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
// asan and msan will not call the new handler.
1919
// UNSUPPORTED: sanitizer-new-delete
2020

21+
// Libcxx when built for z/OS doesn't contain the aligned allocation functions,
22+
// nor does the dynamic library shipped with z/OS.
23+
// UNSUPPORTED: target={{.+}}-zos{{.*}}
24+
2125
// test operator new (nothrow)
2226

2327
#include <new>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
// UNSUPPORTED: clang-5, clang-6, clang-7
1717
// XFAIL: use_system_cxx_lib && target={{.+}}-apple-macosx10.{{9|10|11|12|13}}
1818

19+
// Libcxx when built for z/OS doesn't contain the aligned allocation functions,
20+
// nor does the dynamic library shipped with z/OS.
21+
// UNSUPPORTED: target={{.+}}-zos{{.*}}
22+
1923
// test operator new nothrow by replacing only operator new
2024

2125
#include <new>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
// UNSUPPORTED: c++03, c++11, c++14
1010
// UNSUPPORTED: sanitizer-new-delete
1111

12+
// Libcxx when built for z/OS doesn't contain the aligned allocation functions,
13+
// nor does the dynamic library shipped with z/OS.
14+
// UNSUPPORTED: target={{.+}}-zos{{.*}}
15+
1216
// test operator new replacement
1317

1418
#include <new>

0 commit comments

Comments
 (0)