Skip to content

Mark tests as unsupported when targeting z/OS #107916

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions clang/test/Analysis/ctu-on-demand-parsing.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
//
// FIXME: Path handling should work on all platforms.
// REQUIRES: system-linux
// UNSUPPORTED: target={{.*}}-zos{{.*}}
Copy link
Contributor

@abhina-sree abhina-sree Sep 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this work instead? I think this testcase won't work for all non-linux targets, same with the other similar testcase

// REQUIRES: system-linux && target={{.*linux.*}}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless we can prove that is the case, it is better to stick with the more selective condition. I don't think many people run lit cross target so it would be difficult to validate.


void clang_analyzer_eval(int);

Expand Down
1 change: 1 addition & 0 deletions clang/test/Analysis/ctu-on-demand-parsing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
//
// FIXME: Path handling should work on all platforms.
// REQUIRES: system-linux
// UNSUPPORTED: target={{.*}}-zos{{.*}}

#include "ctu-hdr.h"

Expand Down
5 changes: 3 additions & 2 deletions clang/test/CodeGenCXX/pr59765-modules-global-ctor-dtor.cppm
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// https://github.com/llvm/llvm-project/issues/59765
// FIXME: Since the signature of the constructors/destructors is
// different in different targets. The current CHECK can't work
// well when targeting or running on AIX and z/OS.
// well when targeting AIX and z/OS.
// It would be better to add the corresponding test for other test.
// UNSUPPORTED: system-zos, system-aix
// UNSUPPORTED: system-aix
// UNSUPPORTED: target={{.*}}-zos{{.*}}
//
// RUN: rm -rf %t
// RUN: mkdir %t
Expand Down
1 change: 1 addition & 0 deletions clang/test/Driver/hipstdpar.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// REQUIRES: x86-registered-target
// REQUIRES: amdgpu-registered-target
// REQUIRES: system-linux
// UNSUPPORTED: target={{.*}}-zos{{.*}}
// XFAIL: target={{.*}}hexagon{{.*}}
// XFAIL: target={{.*}}-scei{{.*}}
// XFAIL: target={{.*}}-sie{{.*}}
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Driver/lld-repro.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: lld
// UNSUPPORTED: target={{.*-(ps4|ps5)}}
// UNSUPPORTED: target={{.*-(ps4|ps5)}}, target={{.*}}-zos{{.*}}

// RUN: echo "-nostartfiles -nostdlib -fuse-ld=lld -gen-reproducer=error -fcrash-diagnostics-dir=%t" \
// RUN: | sed -e 's/\\/\\\\/g' > %t.rsp
Expand Down
4 changes: 4 additions & 0 deletions clang/test/OpenMP/lit.local.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# -*- Python -*- vim: set ft=python ts=4 sw=4 expandtab tw=79:
import re
from lit.llvm.subst import ToolSubst

fc = ToolSubst("FileCheck", unresolved="fatal")
config.substitutions.insert(0, (fc.regex, "FileCheck --allow-unused-prefixes"))

if re.match(r".*-zos", config.target_triple):
config.unsupported = True
Loading