[clang] 8b16fc2 - [Driver][test] Exclude `-o /dev/null` test for Windows
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Tue May 9 16:44:20 PDT 2023
Author: Fangrui Song
Date: 2023-05-09T16:44:15-07:00
New Revision: 8b16fc2e17c0149125e339f45d66f6c4eac9fec8
URL: https://github.com/llvm/llvm-project/commit/8b16fc2e17c0149125e339f45d66f6c4eac9fec8
DIFF: https://github.com/llvm/llvm-project/commit/8b16fc2e17c0149125e339f45d66f6c4eac9fec8.diff
LOG: [Driver][test] Exclude `-o /dev/null` test for Windows
lit changes /dev/null to a special filename, and `"-dumpdir" "/dev/null-"` will fail.
Added:
Modified:
clang/test/Driver/split-debug.c
Removed:
################################################################################
diff --git a/clang/test/Driver/split-debug.c b/clang/test/Driver/split-debug.c
index 19214f997c66..e45d2e19bb81 100644
--- a/clang/test/Driver/split-debug.c
+++ b/clang/test/Driver/split-debug.c
@@ -67,7 +67,7 @@
/// GCC special cases /dev/null (HOST_BIT_BUCKET) but not other special files like /dev/zero.
/// We don't apply special rules at all.
-// RUN: %clang -### --target=x86_64-unknown-linux-gnu -gsplit-dwarf -g %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=SPLIT_LINK_NULL
+// RUN: %if !system-windows %{ %clang -### --target=x86_64-unknown-linux-gnu -gsplit-dwarf -g %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=SPLIT_LINK_NULL %}
// SPLIT_LINK_NULL: "-dumpdir" "/dev/null-"
// SPLIT_LINK_NULL-SAME: "-split-dwarf-output" "/dev/null-split-debug.dwo"
More information about the cfe-commits
mailing list