Skip to content

Commit 2f12c48

Browse files
committed
[Tests] Add system-cygwin feature, and use it. (llvm#152611)
Several Clang tests were failing on Cygwin, and were already marked as requiring !system-windows, unsupported on system-windows, or xfail on system-windows. Add system-cygwin to lit's llvm.config, and use it in such tests in addition to system-windows. (cherry picked from commit ff616b4)
1 parent 34ed304 commit 2f12c48

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed

clang/test/CodeGen/2007-06-18-SextAttrAggregate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang_cc1 -no-enable-noundef-analysis %s -o - -emit-llvm | FileCheck %s
2-
// XFAIL: target={{(aarch64|arm64).*}}, target=x86_64-pc-windows-msvc, target=x86_64-{{(pc|w64)}}-windows-gnu
2+
// XFAIL: target={{(aarch64|arm64).*}}, target=x86_64-pc-windows-msvc, target=x86_64-{{(pc|w64)}}-windows-gnu, target=x86_64-pc-windows-cygnus
33

44
// PR1513
55

clang/test/CodeGen/debug-info-version.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: !system-windows
1+
// REQUIRES: !system-windows, !system-cygwin
22
// RUN: %clang -g -S -emit-llvm -o - %s | FileCheck %s
33
// RUN: %clang -S -emit-llvm -o - %s | FileCheck %s --check-prefix=NO_DEBUG
44
int main (void) {

clang/test/CodeGenCXX/modules-vtable.cppm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: !system-windows
1+
// REQUIRES: !system-windows, !system-cygwin
22

33
// RUN: rm -rf %t
44
// RUN: split-file %s %t

clang/test/CodeGenCXX/pr70585.cppm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: !system-windows
1+
// REQUIRES: !system-windows, !system-cygwin
22

33
// RUN: rm -rf %t
44
// RUN: split-file %s %t

clang/test/Driver/cuda-detect-path.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This tests uses the PATH environment variable.
2-
// REQUIRES: !system-windows
2+
// REQUIRES: !system-windows, !system-cygwin
33

44
// RUN: env PATH=%S/Inputs/CUDA/usr/local/cuda/bin \
55
// RUN: %clang -v --target=i386-unknown-linux --sysroot=%S/no-cuda-there \

clang/test/Driver/hipspv-toolchain.hip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// UNSUPPORTED: system-windows
1+
// UNSUPPORTED: system-windows, system-cygwin
22

33
// RUN: %clang -### -target x86_64-linux-gnu --offload=spirv64 \
44
// RUN: --no-offload-new-driver --hip-path=%S/Inputs/hipspv -nohipwrapperinc %s \

clang/test/Driver/ld-path.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// This tests uses the PATH environment variable.
2-
// UNSUPPORTED: system-windows
2+
// UNSUPPORTED: system-windows, system-cygwin
33

44
// RUN: cd %S
55

clang/test/Driver/program-path-priority.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// Don't create symlinks on Windows
2-
// UNSUPPORTED: system-windows
2+
// UNSUPPORTED: system-windows, system-cygwin
33

44
/// Check the priority used when searching for tools
55
/// Names and locations are usually in this order:

clang/test/Driver/spirv-toolchain.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
// RUN: mkdir -p %t/versioned
9393
// RUN: touch %t/versioned/spirv-as-%llvm-version-major \
9494
// RUN: && chmod +x %t/versioned/spirv-as-%llvm-version-major
95-
// RUN: %if !system-windows %{ env "PATH=%t/versioned" %clang -### --target=spirv64 -x cl -c --save-temps %s 2>&1 \
95+
// RUN: %if !system-windows && !system-cygwin %{ env "PATH=%t/versioned" %clang -### --target=spirv64 -x cl -c --save-temps %s 2>&1 \
9696
// RUN: | FileCheck -DVERSION=%llvm-version-major --check-prefix=VERSIONED %s %}
9797

9898
// VERSIONED: {{.*}}spirv-as-[[VERSION]]

clang/test/Interpreter/simple-exception.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// clang-format off
22
// UNSUPPORTED: system-aix
33
// XFAIL for arm, or running on Windows.
4-
// XFAIL: target=arm-{{.*}}, target=armv{{.*}}, system-windows
4+
// XFAIL: target=arm-{{.*}}, target=armv{{.*}}, system-windows, system-cygwin
55
// RUN: cat %s | clang-repl | FileCheck %s
66

77
// Incompatible with msan. It passes with -O3 but fail -Oz. Interpreter

0 commit comments

Comments
 (0)