[lld] 364ee4e - [lld-macho,test] Avoid writing to CWD

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 25 15:12:45 PDT 2024


Author: Fangrui Song
Date: 2024-07-25T15:12:39-07:00
New Revision: 364ee4ee36942e76861e1e7ec9ff8d46ca76e647

URL: https://github.com/llvm/llvm-project/commit/364ee4ee36942e76861e1e7ec9ff8d46ca76e647
DIFF: https://github.com/llvm/llvm-project/commit/364ee4ee36942e76861e1e7ec9ff8d46ca76e647.diff

LOG: [lld-macho,test] Avoid writing to CWD

Don't write to `filelist` in the current working directory, whigh might
be read-only in some testing environmens.

Added: 
    

Modified: 
    lld/test/MachO/filelist.s

Removed: 
    


################################################################################
diff  --git a/lld/test/MachO/filelist.s b/lld/test/MachO/filelist.s
index 3d4846c4505a9..6a9e54fe874e5 100644
--- a/lld/test/MachO/filelist.s
+++ b/lld/test/MachO/filelist.s
@@ -3,7 +3,7 @@
 ## This test verifies that the paths in -filelist get processed in command-line
 ## order.
 
-# RUN: rm -rf %t; split-file %s %t
+# RUN: rm -rf %t; split-file %s %t && cd %t
 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/first.s -o %t/first.o
 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/second.s -o %t/second.o
 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o


        


More information about the llvm-commits mailing list