Skip to content

[Tests] Add system-cygwin feature, and use it. #152611

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 2 commits into from
Aug 8, 2025
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
2 changes: 1 addition & 1 deletion clang/test/CodeGen/2007-06-18-SextAttrAggregate.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -no-enable-noundef-analysis %s -o - -emit-llvm | FileCheck %s
// XFAIL: target={{(aarch64|arm64).*}}, target=x86_64-pc-windows-msvc, target=x86_64-{{(pc|w64)}}-windows-gnu
// XFAIL: target={{(aarch64|arm64).*}}, target=x86_64-pc-windows-msvc, target=x86_64-{{(pc|w64)}}-windows-gnu, target=x86_64-pc-windows-cygnus

// PR1513

Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGen/debug-info-version.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// REQUIRES: !system-windows
// REQUIRES: !system-windows, !system-cygwin
// RUN: %clang -g -S -emit-llvm -o - %s | FileCheck %s
// RUN: %clang -S -emit-llvm -o - %s | FileCheck %s --check-prefix=NO_DEBUG
int main (void) {
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGenCXX/modules-vtable.cppm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// REQUIRES: !system-windows
// REQUIRES: !system-windows, !system-cygwin

// RUN: rm -rf %t
// RUN: split-file %s %t
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGenCXX/pr70585.cppm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// REQUIRES: !system-windows
// REQUIRES: !system-windows, !system-cygwin

// RUN: rm -rf %t
// RUN: split-file %s %t
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Driver/cuda-detect-path.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This tests uses the PATH environment variable.
// REQUIRES: !system-windows
// REQUIRES: !system-windows, !system-cygwin

// RUN: env PATH=%S/Inputs/CUDA/usr/local/cuda/bin \
// RUN: %clang -v --target=i386-unknown-linux --sysroot=%S/no-cuda-there \
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Driver/hipspv-toolchain.hip
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// UNSUPPORTED: system-windows
// UNSUPPORTED: system-windows, system-cygwin

// RUN: %clang -### -target x86_64-linux-gnu --offload=spirv64 \
// RUN: --no-offload-new-driver --hip-path=%S/Inputs/hipspv -nohipwrapperinc %s \
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Driver/ld-path.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// This tests uses the PATH environment variable.
// UNSUPPORTED: system-windows
// UNSUPPORTED: system-windows, system-cygwin

// RUN: cd %S

Expand Down
2 changes: 1 addition & 1 deletion clang/test/Driver/program-path-priority.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Don't create symlinks on Windows
// UNSUPPORTED: system-windows
// UNSUPPORTED: system-windows, system-cygwin

/// Check the priority used when searching for tools
/// Names and locations are usually in this order:
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Driver/spirv-toolchain.cl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
// RUN: mkdir -p %t/versioned
// RUN: touch %t/versioned/spirv-as-%llvm-version-major \
// RUN: && chmod +x %t/versioned/spirv-as-%llvm-version-major
// RUN: %if !system-windows %{ env "PATH=%t/versioned" %clang -### --target=spirv64 -x cl -c --save-temps %s 2>&1 \
// RUN: %if !system-windows && !system-cygwin %{ env "PATH=%t/versioned" %clang -### --target=spirv64 -x cl -c --save-temps %s 2>&1 \
// RUN: | FileCheck -DVERSION=%llvm-version-major --check-prefix=VERSIONED %s %}

// VERSIONED: {{.*}}spirv-as-[[VERSION]]
2 changes: 1 addition & 1 deletion clang/test/Interpreter/simple-exception.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// clang-format off
// UNSUPPORTED: system-aix
// XFAIL for arm, or running on Windows.
// XFAIL: target=arm-{{.*}}, target=armv{{.*}}, system-windows
// XFAIL: target=arm-{{.*}}, target=armv{{.*}}, system-windows, system-cygwin
// RUN: cat %s | clang-repl | FileCheck %s

// Incompatible with msan. It passes with -O3 but fail -Oz. Interpreter
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Lexer/cross-windows-on-linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
// on non-Windows unless -fms-extensions is passed. It won't fail in this way on
// Windows because the filesystem will interpret the backslash as a directory
// separator.
// UNSUPPORTED: system-windows
// UNSUPPORTED: system-windows, system-cygwin
2 changes: 1 addition & 1 deletion clang/test/Modules/pr97313.cppm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// REQUIRES: !system-windows
// REQUIRES: !system-windows, !system-cygwin
//
// RUN: rm -rf %t
// RUN: mkdir -p %t
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Preprocessor/file_test.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// UNSUPPORTED: system-windows
// UNSUPPORTED: system-windows, system-cygwin
// RUN: %clang -E -ffile-prefix-map=%p=/UNLIKELY_PATH/empty -c -o - %s | FileCheck %s
// RUN: %clang -E -fmacro-prefix-map=%p=/UNLIKELY_PATH/empty -c -o - %s | FileCheck %s
// RUN: %clang -E -fmacro-prefix-map=%p=/UNLIKELY_PATH=empty -c -o - %s | FileCheck %s -check-prefix CHECK-EVIL
Expand Down