From 5ccdce95b4842a472ee466e4ad1bdfa4e9eb31dc Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Tue, 11 Jun 2024 17:34:15 +0100 Subject: [PATCH] [test] Skip some tests on Windows only (#95095) These tests pass on Linux using lit's internal shell. --- llvm/test/DebugInfo/symbolize-gnu-debuglink-fallback.test | 2 +- llvm/test/tools/llvm-cov/gcov/basic.test | 2 +- llvm/test/tools/llvm-rc/windres-preproc.test | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/llvm/test/DebugInfo/symbolize-gnu-debuglink-fallback.test b/llvm/test/DebugInfo/symbolize-gnu-debuglink-fallback.test index 43d5a2c818fa..c0d6f83e4af0 100644 --- a/llvm/test/DebugInfo/symbolize-gnu-debuglink-fallback.test +++ b/llvm/test/DebugInfo/symbolize-gnu-debuglink-fallback.test @@ -1,4 +1,4 @@ -# REQUIRES: shell +# UNSUPPORTED: system-windows # Ensures that .debuglink can fallback to a separate location. This is normally # /usr/lib/debug (or /usr/libdata/debug for NetBSD), but can be configured on # the command line (mainly for testing). diff --git a/llvm/test/tools/llvm-cov/gcov/basic.test b/llvm/test/tools/llvm-cov/gcov/basic.test index 5313fe2d7a69..7557739add8b 100644 --- a/llvm/test/tools/llvm-cov/gcov/basic.test +++ b/llvm/test/tools/llvm-cov/gcov/basic.test @@ -3,7 +3,7 @@ # Test fails on Windows where internal shell is used due to path separator # mismatches. -REQUIRES: shell +UNSUPPORTED: system-windows RUN: rm -rf %t RUN: mkdir %t diff --git a/llvm/test/tools/llvm-rc/windres-preproc.test b/llvm/test/tools/llvm-rc/windres-preproc.test index 13f82299a074..52427862e760 100644 --- a/llvm/test/tools/llvm-rc/windres-preproc.test +++ b/llvm/test/tools/llvm-rc/windres-preproc.test @@ -1,7 +1,6 @@ ;; Some quoted arguments below don't work properly on Windows when llvm-lit -;; invokes the cmd shell to run the commands. Just require running in a -;; posix shell, to keep being able to test this corner case on Unix at least. -; REQUIRES: shell +;; invokes the cmd shell to run the commands. +; UNSUPPORTED: system-windows ; RUN: llvm-windres -### --include-dir %p/incdir1 --include %p/incdir2 "-DFOO1=\\\"foo bar\\\"" -UFOO2 -D FOO3 --preprocessor-arg "-DFOO4=\\\"baz baz\\\"" -DFOO5=\"bar\" %p/Inputs/empty.rc %t.res | FileCheck %s --check-prefix=CHECK1 ; RUN: llvm-windres -### --include-dir %p/incdir1 --include %p/incdir2 "-DFOO1=\"foo bar\"" -UFOO2 -D FOO3 --preprocessor-arg "-DFOO4=\"baz baz\"" "-DFOO5=bar" %p/Inputs/empty.rc %t.res --use-temp-file | FileCheck %s --check-prefix=CHECK1