Skip to content

Commit

Permalink
[lld] Fix test failures when running as root user (llvm#81339)
Browse files Browse the repository at this point in the history
This makes it easier to run the tests in a containerized environment.

(cherry picked from commit e165bea)
  • Loading branch information
tstellar authored and llvmbot committed Feb 16, 2024
1 parent 5750be5 commit d0392f7
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lld/test/COFF/lto-cache-errors.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; REQUIRES: x86
; REQUIRES: x86, non-root-user
;; Not supported on windows since we use permissions to deny the creation
; UNSUPPORTED: system-windows

Expand Down
2 changes: 1 addition & 1 deletion lld/test/COFF/thinlto-emit-imports.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; REQUIRES: x86
; REQUIRES: x86, non-root-user

; Generate summary sections and test lld handling.
; RUN: opt -module-summary %s -o %t1.obj
Expand Down
2 changes: 1 addition & 1 deletion lld/test/ELF/lto/resolution-err.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; UNSUPPORTED: system-windows
; REQUIRES: shell
; REQUIRES: shell, non-root-user
; RUN: llvm-as %s -o %t.bc
; RUN: touch %t.resolution.txt
; RUN: chmod u-w %t.resolution.txt
Expand Down
2 changes: 1 addition & 1 deletion lld/test/ELF/lto/thinlto-cant-write-index.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; REQUIRES: x86
; REQUIRES: x86, non-root-user

; Basic ThinLTO tests.
; RUN: opt -module-summary %s -o %t1.o
Expand Down
2 changes: 1 addition & 1 deletion lld/test/ELF/lto/thinlto-emit-imports.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; REQUIRES: x86
; REQUIRES: x86, non-root-user
;; Test a few properties not tested by thinlto-index-only.ll

; RUN: opt -module-summary %s -o %t1.o
Expand Down
2 changes: 1 addition & 1 deletion lld/test/MachO/invalid/invalid-lto-object-path.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; REQUIRES: x86
; REQUIRES: x86, non-root-user

;; Creating read-only directories with `chmod 400` isn't supported on Windows
; UNSUPPORTED: system-windows
Expand Down
2 changes: 1 addition & 1 deletion lld/test/MachO/thinlto-emit-imports.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; REQUIRES: x86
; REQUIRES: x86, non-root-user
; RUN: rm -rf %t; split-file %s %t

; Generate summary sections and test lld handling.
Expand Down

0 comments on commit d0392f7

Please sign in to comment.