Skip to content

Commit a514457

Browse files
authored
Mark tests as unsupported when targeting z/OS (#107916)
Set up these tests so these are marked as unsupported when targeting z/OS. Most would already be unsupported if you ran lit on z/OS. However, they also need to be unsupported if the default triple is z/OS.
1 parent ac802a3 commit a514457

File tree

6 files changed

+11
-3
lines changed

6 files changed

+11
-3
lines changed

clang/test/Analysis/ctu-on-demand-parsing.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
//
2525
// FIXME: Path handling should work on all platforms.
2626
// REQUIRES: system-linux
27+
// UNSUPPORTED: target={{.*}}-zos{{.*}}
2728

2829
void clang_analyzer_eval(int);
2930

clang/test/Analysis/ctu-on-demand-parsing.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
//
3636
// FIXME: Path handling should work on all platforms.
3737
// REQUIRES: system-linux
38+
// UNSUPPORTED: target={{.*}}-zos{{.*}}
3839

3940
#include "ctu-hdr.h"
4041

clang/test/CodeGenCXX/pr59765-modules-global-ctor-dtor.cppm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// https://github.com/llvm/llvm-project/issues/59765
22
// FIXME: Since the signature of the constructors/destructors is
33
// different in different targets. The current CHECK can't work
4-
// well when targeting or running on AIX and z/OS.
4+
// well when targeting AIX and z/OS.
55
// It would be better to add the corresponding test for other test.
6-
// UNSUPPORTED: system-zos, system-aix
6+
// UNSUPPORTED: system-aix
7+
// UNSUPPORTED: target={{.*}}-zos{{.*}}
78
//
89
// RUN: rm -rf %t
910
// RUN: mkdir %t

clang/test/Driver/hipstdpar.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// REQUIRES: x86-registered-target
22
// REQUIRES: amdgpu-registered-target
33
// REQUIRES: system-linux
4+
// UNSUPPORTED: target={{.*}}-zos{{.*}}
45
// XFAIL: target={{.*}}hexagon{{.*}}
56
// XFAIL: target={{.*}}-scei{{.*}}
67
// XFAIL: target={{.*}}-sie{{.*}}

clang/test/Driver/lld-repro.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// REQUIRES: lld
2-
// UNSUPPORTED: target={{.*-(ps4|ps5)}}
2+
// UNSUPPORTED: target={{.*-(ps4|ps5)}}, target={{.*}}-zos{{.*}}
33

44
// RUN: echo "-nostartfiles -nostdlib -fuse-ld=lld -gen-reproducer=error -fcrash-diagnostics-dir=%t" \
55
// RUN: | sed -e 's/\\/\\\\/g' > %t.rsp

clang/test/OpenMP/lit.local.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# -*- Python -*- vim: set ft=python ts=4 sw=4 expandtab tw=79:
2+
import re
23
from lit.llvm.subst import ToolSubst
34

45
fc = ToolSubst("FileCheck", unresolved="fatal")
56
config.substitutions.insert(0, (fc.regex, "FileCheck --allow-unused-prefixes"))
7+
8+
if re.match(r".*-zos", config.target_triple):
9+
config.unsupported = True

0 commit comments

Comments
 (0)