[test] Skip some tests on Windows only (#95095)

These tests pass on Linux using lit's internal shell.
This commit is contained in:
Jay Foad 2024-06-11 17:34:15 +01:00 committed by GitHub
parent 2e007b89c6
commit 5ccdce95b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 5 deletions

View File

@ -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).

View File

@ -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

View File

@ -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