[lld] 00b6d21 - [ELF][test] Avoid race on a.out

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 23 20:48:54 PST 2022


Author: Fangrui Song
Date: 2022-02-23T20:48:49-08:00
New Revision: 00b6d2106b9f41491e892056f406f547d555e7d2

URL: https://github.com/llvm/llvm-project/commit/00b6d2106b9f41491e892056f406f547d555e7d2
DIFF: https://github.com/llvm/llvm-project/commit/00b6d2106b9f41491e892056f406f547d555e7d2.diff

LOG: [ELF][test] Avoid race on a.out

Added: 
    

Modified: 
    lld/test/ELF/amdgpu-duplicate-sym.s
    lld/test/ELF/mips-gp-disp-ver.s

Removed: 
    


################################################################################
diff  --git a/lld/test/ELF/amdgpu-duplicate-sym.s b/lld/test/ELF/amdgpu-duplicate-sym.s
index 6c7a81dbdd5b..db92dad01f65 100644
--- a/lld/test/ELF/amdgpu-duplicate-sym.s
+++ b/lld/test/ELF/amdgpu-duplicate-sym.s
@@ -2,7 +2,7 @@
 # RUN: llvm-mc -filetype=obj -triple amdgcn-amd-amdhsa -mcpu=gfx1031 --position-independent --relax-relocations %s -o %t.o
 
 # We use lld-link on purpose to exercise -flavor.
-# RUN: lld-link -flavor gnu -shared %t.o
+# RUN: lld-link -flavor gnu -shared %t.o -o /dev/null
 
         .text
         .amdgcn_target "amdgcn-amd-amdhsa--gfx1031"

diff  --git a/lld/test/ELF/mips-gp-disp-ver.s b/lld/test/ELF/mips-gp-disp-ver.s
index 8eaee19daf19..a6bf387ccece 100644
--- a/lld/test/ELF/mips-gp-disp-ver.s
+++ b/lld/test/ELF/mips-gp-disp-ver.s
@@ -6,7 +6,7 @@
 # libraries. This test checks such handling.
 
 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
-# RUN: ld.lld %t.o %S/Inputs/mips-gp-dips-corrupt-ver.so
+# RUN: ld.lld %t.o %S/Inputs/mips-gp-dips-corrupt-ver.so -o /dev/null
 
   .global __start
   .text


        


More information about the llvm-commits mailing list