Skip to content

Commit df9965c

Browse files
[lld] Remove shell requirements from tests
These tests all pass inside the lit internal shell. A couple were marked as requiring a shell to exclude them on Windows. Update those tests to explicitly carve out Windows rather than any configuration that does not provide the shell feature. Towards #102700. Reviewers: petrhosek, cmtice, mysterymath, MaskRay, ilovepi Reviewed By: cmtice Pull Request: #156510
1 parent e75f054 commit df9965c

17 files changed

+38
-17
lines changed

lld/test/COFF/color-diagnostics.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Windows command prompt doesn't support ANSI escape sequences.
2-
# REQUIRES: shell
2+
# UNSUPPORTED: system-windows
33

44
# RUN: not lld-link -xyz --color-diagnostics /nosuchfile 2>&1 \
55
# RUN: | FileCheck -check-prefix=COLOR %s

lld/test/COFF/linkrepro-res.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# REQUIRES: x86, shell
1+
# REQUIRES: x86
2+
# Unsupported on Windows due to maximum path length limitations.
3+
# UNSUPPORTED: system-windows
24

35
# RUN: rm -rf %t.dir
46
# RUN: mkdir -p %t.dir/build

lld/test/COFF/linkrepro.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# REQUIRES: x86, shell
1+
# REQUIRES: x86
2+
# Unsupported on Windows due to maximum path length limitations.
3+
# UNSUPPORTED: system-windows
24

35
# RUN: rm -rf %t.dir
46
# RUN: split-file %s %t.dir

lld/test/ELF/arm-exidx-range.s

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// REQUIRES: arm, shell
1+
// REQUIRES: arm
2+
// Fails for unclear reasons on 32-bit windows
3+
// UNSUPPORTED: system-windows
24
// RUN: llvm-mc --arm-add-build-attributes --triple=armv7a-linux-gnueabihf -filetype=obj %s -o %t.o
35
// RUN: echo "SECTIONS { \
46
// RUN: . = 0x80000000; \

lld/test/ELF/color-diagnostics.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Windows command prompt doesn't support ANSI escape sequences.
2-
# REQUIRES: shell
2+
# UNSUPPORTED: system-windows
33

44
# RUN: not ld.lld -xyz --color-diagnostics /nosuchfile 2>&1 \
55
# RUN: | FileCheck -check-prefix=COLOR %s

lld/test/ELF/file-access.s

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# REQUIRES: x86, shell
1+
# REQUIRES: x86
2+
# UNSUPPORTED: system-windows
23

34
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
45
# RUN: ld.lld -r %t.o -o %t1.o

lld/test/ELF/linkerscript/invalid.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## We can't write quoted strings that are interpreted the same way
66
## by all echo commands. So, we don't want to run this on Windows.
77

8-
# REQUIRES: shell
8+
# UNSUPPORTED: system-windows
99

1010
# RUN: mkdir -p %t.dir
1111

lld/test/ELF/lto/resolution-err.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; UNSUPPORTED: system-windows
2-
; REQUIRES: shell, non-root-user
2+
; REQUIRES: non-root-user
33
; RUN: llvm-as %s -o %t.bc
44
; RUN: touch %t.resolution.txt
55
; RUN: chmod u-w %t.resolution.txt

lld/test/MachO/color-diagnostics.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Windows command prompt doesn't support ANSI escape sequences.
2-
# REQUIRES: shell
2+
# UNSUPPORTED: system-windows
33

44
# RUN: not %lld --color-diagnostics /nosuchfile 2>&1 \
55
# RUN: | FileCheck -check-prefix=COLOR %s

lld/test/MachO/framework.s

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# REQUIRES: x86, shell
1+
# REQUIRES: x86
2+
# UNSUPPORTED: system-windows
23
# RUN: rm -rf %t; split-file %s %t
34
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/foo.s -o %t/foo.o
45
# RUN: mkdir -p %t/Foo.framework/Versions/A

0 commit comments

Comments
 (0)