Skip to content

Commit 2aea16f

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 9415903 commit 2aea16f

File tree

12 files changed

+12
-12
lines changed

12 files changed

+12
-12
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/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
@@ -98,7 +98,7 @@
9898
// RUN: mkdir -p %t/versioned
9999
// RUN: touch %t/versioned/llvm-spirv-%llvm-version-major \
100100
// RUN: && chmod +x %t/versioned/llvm-spirv-%llvm-version-major
101-
// RUN: %if !system-windows %{ env "PATH=%t/versioned" %clang -### --target=spirv64 -x cl -c %s 2>&1 \
101+
// RUN: %if !system-windows && !system-cygwin %{ env "PATH=%t/versioned" %clang -### --target=spirv64 -x cl -c %s 2>&1 \
102102
// RUN: | FileCheck -DVERSION=%llvm-version-major --check-prefix=VERSIONED %s %}
103103

104104
// VERSIONED: {{.*}}llvm-spirv-[[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

clang/test/Lexer/cross-windows-on-linux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
// on non-Windows unless -fms-extensions is passed. It won't fail in this way on
1111
// Windows because the filesystem will interpret the backslash as a directory
1212
// separator.
13-
// UNSUPPORTED: system-windows
13+
// UNSUPPORTED: system-windows, system-cygwin

0 commit comments

Comments
 (0)