From 364ee4ee36942e76861e1e7ec9ff8d46ca76e647 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 25 Jul 2024 15:12:39 -0700 Subject: [PATCH] [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. --- lld/test/MachO/filelist.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/test/MachO/filelist.s b/lld/test/MachO/filelist.s index 3d4846c4505a..6a9e54fe874e 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