Skip to content

Commit e165bea

Browse files
authored
[lld] Fix test failures when running as root user (llvm#81339)
This makes it easier to run the tests in a containerized environment.
1 parent 7664ddf commit e165bea

7 files changed

+7
-7
lines changed

lld/test/COFF/lto-cache-errors.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; REQUIRES: x86
1+
; REQUIRES: x86, non-root-user
22
;; Not supported on windows since we use permissions to deny the creation
33
; UNSUPPORTED: system-windows
44

lld/test/COFF/thinlto-emit-imports.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; REQUIRES: x86
1+
; REQUIRES: x86, non-root-user
22

33
; Generate summary sections and test lld handling.
44
; RUN: opt -module-summary %s -o %t1.obj

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
2+
; REQUIRES: shell, 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/ELF/lto/thinlto-cant-write-index.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; REQUIRES: x86
1+
; REQUIRES: x86, non-root-user
22

33
; Basic ThinLTO tests.
44
; RUN: opt -module-summary %s -o %t1.o

lld/test/ELF/lto/thinlto-emit-imports.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; REQUIRES: x86
1+
; REQUIRES: x86, non-root-user
22
;; Test a few properties not tested by thinlto-index-only.ll
33

44
; RUN: opt -module-summary %s -o %t1.o

lld/test/MachO/invalid/invalid-lto-object-path.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; REQUIRES: x86
1+
; REQUIRES: x86, non-root-user
22

33
;; Creating read-only directories with `chmod 400` isn't supported on Windows
44
; UNSUPPORTED: system-windows

lld/test/MachO/thinlto-emit-imports.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; REQUIRES: x86
1+
; REQUIRES: x86, non-root-user
22
; RUN: rm -rf %t; split-file %s %t
33

44
; Generate summary sections and test lld handling.

0 commit comments

Comments
 (0)