diff --git a/lld/test/MachO/U-dynamic-lookup.s b/lld/test/MachO/U-dynamic-lookup.s --- a/lld/test/MachO/U-dynamic-lookup.s +++ b/lld/test/MachO/U-dynamic-lookup.s @@ -1,6 +1,6 @@ # REQUIRES: x86 # RUN: rm -rf %t -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/foo.o %t/foo.s # RUN: %lld -dylib -o %t/foo.dylib %t/foo.o diff --git a/lld/test/MachO/adhoc-codesign.s b/lld/test/MachO/adhoc-codesign.s --- a/lld/test/MachO/adhoc-codesign.s +++ b/lld/test/MachO/adhoc-codesign.s @@ -1,7 +1,7 @@ # REQUIRES: x86, aarch64 # RUN: rm -rf %t -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=arm64-apple-macos -o %t/main-arm64-macos.o %t/main.s # RUN: llvm-mc -filetype=obj -triple=arm64-apple-iossimulator -o %t/main-arm64-sim.o %t/main.s diff --git a/lld/test/MachO/common-symbol-coalescing.s b/lld/test/MachO/common-symbol-coalescing.s --- a/lld/test/MachO/common-symbol-coalescing.s +++ b/lld/test/MachO/common-symbol-coalescing.s @@ -1,5 +1,5 @@ # REQUIRES: x86 -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/same-size.s -o %t/same-size.o diff --git a/lld/test/MachO/dependency-info.s b/lld/test/MachO/dependency-info.s --- a/lld/test/MachO/dependency-info.s +++ b/lld/test/MachO/dependency-info.s @@ -1,7 +1,7 @@ # REQUIRES: x86 # # RUN: rm -rf %t -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/foo.o %t/foo.s # RUN: %lld -dylib -o %t/libfoo.dylib %t/foo.o diff --git a/lld/test/MachO/dylib-stub.yaml b/lld/test/MachO/dylib-stub.yaml --- a/lld/test/MachO/dylib-stub.yaml +++ b/lld/test/MachO/dylib-stub.yaml @@ -9,7 +9,7 @@ ## taking a non-stub dylib and editing the appropriate fields. # REQUIRES: x86 -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o # RUN: yaml2obj %t/fat.dylib.yaml > %t/fat.dylib # RUN: %lld -lSystem %t/test.o %t/fat.dylib -o %t/test diff --git a/lld/test/MachO/entry-symbol.s b/lld/test/MachO/entry-symbol.s --- a/lld/test/MachO/entry-symbol.s +++ b/lld/test/MachO/entry-symbol.s @@ -1,5 +1,5 @@ # REQUIRES: x86 -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/not-main.s -o %t/not-main.o # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/libfoo.s -o %t/libfoo.o # RUN: %lld -lSystem -dylib %t/libfoo.o -o %t/libfoo.dylib diff --git a/lld/test/MachO/flat-namespace.s b/lld/test/MachO/flat-namespace.s --- a/lld/test/MachO/flat-namespace.s +++ b/lld/test/MachO/flat-namespace.s @@ -1,6 +1,6 @@ # REQUIRES: x86 # RUN: rm -rf %t -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/foo.o %t/foo.s # RUN: %lld -dylib -o %t/foo.dylib %t/foo.o diff --git a/lld/test/MachO/indirect-symtab.s b/lld/test/MachO/indirect-symtab.s --- a/lld/test/MachO/indirect-symtab.s +++ b/lld/test/MachO/indirect-symtab.s @@ -1,5 +1,5 @@ # REQUIRES: x86 -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/libfoo.s -o %t/libfoo.o # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o # RUN: %lld -dylib %t/libfoo.o -o %t/libfoo.dylib -lSystem diff --git a/lld/test/MachO/invalid/abs-duplicate.s b/lld/test/MachO/invalid/abs-duplicate.s --- a/lld/test/MachO/invalid/abs-duplicate.s +++ b/lld/test/MachO/invalid/abs-duplicate.s @@ -1,5 +1,5 @@ # REQUIRES: x86 -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/weakfoo.s -o %t/weakfoo.o # RUN: not %lld -lSystem %t/test.o %t/weakfoo.o -o %t/test 2>&1 | FileCheck %s diff --git a/lld/test/MachO/invalid/bad-got-to-dylib-tlv-reference.s b/lld/test/MachO/invalid/bad-got-to-dylib-tlv-reference.s --- a/lld/test/MachO/invalid/bad-got-to-dylib-tlv-reference.s +++ b/lld/test/MachO/invalid/bad-got-to-dylib-tlv-reference.s @@ -1,5 +1,5 @@ # REQUIRES: x86 -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/libtlv.s -o %t/libtlv.o # RUN: %lld -dylib -install_name @executable_path/libtlv.dylib \ diff --git a/lld/test/MachO/invalid/range-check.s b/lld/test/MachO/invalid/range-check.s --- a/lld/test/MachO/invalid/range-check.s +++ b/lld/test/MachO/invalid/range-check.s @@ -1,6 +1,6 @@ # REQUIRES: x86 -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/bar.s -o %t/bar.o # RUN: %lld -dylib %t/bar.o -o %t/libbar.dylib diff --git a/lld/test/MachO/invalid/undefined-symbol.s b/lld/test/MachO/invalid/undefined-symbol.s --- a/lld/test/MachO/invalid/undefined-symbol.s +++ b/lld/test/MachO/invalid/undefined-symbol.s @@ -1,6 +1,6 @@ # REQUIRES: x86 # RUN: rm -rf %t -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/main.s -o %t/main.o # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/foo.s -o %t/foo.o # RUN: llvm-ar crs %t/foo.a %t/foo.o diff --git a/lld/test/MachO/lc-linker-option.ll b/lld/test/MachO/lc-linker-option.ll --- a/lld/test/MachO/lc-linker-option.ll +++ b/lld/test/MachO/lc-linker-option.ll @@ -1,6 +1,6 @@ # REQUIRES: x86 # RUN: rm -rf %t -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-as %t/framework.ll -o %t/framework.o # RUN: %lld %t/framework.o -o %t/frame diff --git a/lld/test/MachO/nonweak-definition-override.s b/lld/test/MachO/nonweak-definition-override.s --- a/lld/test/MachO/nonweak-definition-override.s +++ b/lld/test/MachO/nonweak-definition-override.s @@ -1,5 +1,5 @@ # REQUIRES: x86 -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/libfoo.s -o %t/libfoo.o # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/nonweakdef.s -o %t/nonweakdef.o # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/weakdef.s -o %t/weakdef.o diff --git a/lld/test/MachO/private-extern.s b/lld/test/MachO/private-extern.s --- a/lld/test/MachO/private-extern.s +++ b/lld/test/MachO/private-extern.s @@ -1,6 +1,6 @@ # REQUIRES: x86 -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos \ # RUN: %t/basics.s -o %t/basics.o diff --git a/lld/test/MachO/t.s b/lld/test/MachO/t.s --- a/lld/test/MachO/t.s +++ b/lld/test/MachO/t.s @@ -1,6 +1,6 @@ # REQUIRES: x86 # RUN: rm -rf %t -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/foo.o %t/foo.s # RUN: %lld -dylib -o %t/libfoo.dylib %t/foo.o diff --git a/lld/test/MachO/thin-archive.s b/lld/test/MachO/thin-archive.s --- a/lld/test/MachO/thin-archive.s +++ b/lld/test/MachO/thin-archive.s @@ -1,6 +1,6 @@ # REQUIRES: x86 -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/main.o %t/main.s # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/lib.o \ diff --git a/lld/test/MachO/tlv-dylib.s b/lld/test/MachO/tlv-dylib.s --- a/lld/test/MachO/tlv-dylib.s +++ b/lld/test/MachO/tlv-dylib.s @@ -1,5 +1,5 @@ # REQUIRES: x86 -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/libtlv.s -o %t/libtlv.o # RUN: %lld -dylib -install_name @executable_path/libtlv.dylib \ diff --git a/lld/test/MachO/u.s b/lld/test/MachO/u.s --- a/lld/test/MachO/u.s +++ b/lld/test/MachO/u.s @@ -1,6 +1,6 @@ # REQUIRES: x86 # RUN: rm -rf %t -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/foo.o %t/foo.s # RUN: llvm-ar csr %t/lib.a %t/foo.o diff --git a/lld/test/MachO/weak-binding.s b/lld/test/MachO/weak-binding.s --- a/lld/test/MachO/weak-binding.s +++ b/lld/test/MachO/weak-binding.s @@ -1,5 +1,5 @@ # REQUIRES: x86 -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/libfoo.s -o %t/libfoo.o # RUN: %lld -dylib %t/libfoo.o -o %t/libfoo.dylib diff --git a/lld/test/MachO/weak-header-flags.s b/lld/test/MachO/weak-header-flags.s --- a/lld/test/MachO/weak-header-flags.s +++ b/lld/test/MachO/weak-header-flags.s @@ -1,5 +1,5 @@ # REQUIRES: x86 -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/libweak-defines.s -o %t/libweak-defines.o # RUN: %lld -dylib %t/libweak-defines.o -o %t/libweak-defines.dylib diff --git a/lld/test/MachO/weak-import.s b/lld/test/MachO/weak-import.s --- a/lld/test/MachO/weak-import.s +++ b/lld/test/MachO/weak-import.s @@ -1,5 +1,5 @@ # REQUIRES: x86 -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/weak-ref-only.s -o %t/weak-ref-only.o # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/weak-ref-sub-library.s -o %t/weak-ref-sub-library.o diff --git a/lld/test/MachO/why-load.s b/lld/test/MachO/why-load.s --- a/lld/test/MachO/why-load.s +++ b/lld/test/MachO/why-load.s @@ -1,6 +1,6 @@ # REQUIRES: x86 # RUN: rm -rf %t -# RUN: split-file %s %t +# RUN: rm -rf %t; split-file %s %t # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/objc.o %t/objc.s # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/foo.o %t/foo.s