aboutsummaryrefslogtreecommitdiff
path: root/lld
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2024-02-09 20:57:05 -0800
committerTom Stellard <tstellar@redhat.com>2024-02-16 12:21:13 -0800
commitd71aae5f79863ce897e38f6aab46710f0257f72e (patch)
tree109795474c51bf0059684dac42b24539aa098117 /lld
parent0756378b77054938b2e252c105e91395954366ec (diff)
downloadllvm-d71aae5f79863ce897e38f6aab46710f0257f72e.zip
llvm-d71aae5f79863ce897e38f6aab46710f0257f72e.tar.gz
llvm-d71aae5f79863ce897e38f6aab46710f0257f72e.tar.bz2
[lld] Fix test failures when running as root user (#81339)
This makes it easier to run the tests in a containerized environment. (cherry picked from commit e165bea1d4ec2de96ee0548cece79d71a75ce8f8)
Diffstat (limited to 'lld')
-rw-r--r--lld/test/COFF/lto-cache-errors.ll2
-rw-r--r--lld/test/COFF/thinlto-emit-imports.ll2
-rw-r--r--lld/test/ELF/lto/resolution-err.ll2
-rw-r--r--lld/test/ELF/lto/thinlto-cant-write-index.ll2
-rw-r--r--lld/test/ELF/lto/thinlto-emit-imports.ll2
-rw-r--r--lld/test/MachO/invalid/invalid-lto-object-path.ll2
-rw-r--r--lld/test/MachO/thinlto-emit-imports.ll2
7 files changed, 7 insertions, 7 deletions
diff --git a/lld/test/COFF/lto-cache-errors.ll b/lld/test/COFF/lto-cache-errors.ll
index 55244e5..a46190a 100644
--- a/lld/test/COFF/lto-cache-errors.ll
+++ b/lld/test/COFF/lto-cache-errors.ll
@@ -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
diff --git a/lld/test/COFF/thinlto-emit-imports.ll b/lld/test/COFF/thinlto-emit-imports.ll
index a9f22c1..b47a6cea 100644
--- a/lld/test/COFF/thinlto-emit-imports.ll
+++ b/lld/test/COFF/thinlto-emit-imports.ll
@@ -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
diff --git a/lld/test/ELF/lto/resolution-err.ll b/lld/test/ELF/lto/resolution-err.ll
index 6dfa64b..f9855ab 100644
--- a/lld/test/ELF/lto/resolution-err.ll
+++ b/lld/test/ELF/lto/resolution-err.ll
@@ -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
diff --git a/lld/test/ELF/lto/thinlto-cant-write-index.ll b/lld/test/ELF/lto/thinlto-cant-write-index.ll
index e664acb..286fcdd 100644
--- a/lld/test/ELF/lto/thinlto-cant-write-index.ll
+++ b/lld/test/ELF/lto/thinlto-cant-write-index.ll
@@ -1,4 +1,4 @@
-; REQUIRES: x86
+; REQUIRES: x86, non-root-user
; Basic ThinLTO tests.
; RUN: opt -module-summary %s -o %t1.o
diff --git a/lld/test/ELF/lto/thinlto-emit-imports.ll b/lld/test/ELF/lto/thinlto-emit-imports.ll
index 6d0e1e6..253ec08 100644
--- a/lld/test/ELF/lto/thinlto-emit-imports.ll
+++ b/lld/test/ELF/lto/thinlto-emit-imports.ll
@@ -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
diff --git a/lld/test/MachO/invalid/invalid-lto-object-path.ll b/lld/test/MachO/invalid/invalid-lto-object-path.ll
index 75c6a97..c862538 100644
--- a/lld/test/MachO/invalid/invalid-lto-object-path.ll
+++ b/lld/test/MachO/invalid/invalid-lto-object-path.ll
@@ -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
diff --git a/lld/test/MachO/thinlto-emit-imports.ll b/lld/test/MachO/thinlto-emit-imports.ll
index 47a612b..88f766f 100644
--- a/lld/test/MachO/thinlto-emit-imports.ll
+++ b/lld/test/MachO/thinlto-emit-imports.ll
@@ -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.