From 4c20cc8ca9b6c121d83448d61b826fa252433f28 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Fri, 13 Jan 2023 15:02:39 +0100 Subject: [PATCH] [lld][MachO] Store test outputs in %t --- lld/test/MachO/thinlto-emit-index.ll | 6 +++--- lld/test/MachO/thinlto-index-only.ll | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lld/test/MachO/thinlto-emit-index.ll b/lld/test/MachO/thinlto-emit-index.ll index fa87609..fdc1f48 100644 --- a/lld/test/MachO/thinlto-emit-index.ll +++ b/lld/test/MachO/thinlto-emit-index.ll @@ -43,9 +43,9 @@ ; RUN: ls %t/1.o.imports ;; Ensure LLD generates an empty index for each bitcode file even if all bitcode files are lazy. -; RUN: rm -f %t/1.o.thinlto.bc -; RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin /dev/null -o dummy.o -; RUN: %lld --thinlto-emit-index-files -dylib dummy.o --start-lib %t/1.o --end-lib -o %t/8 +; RUN: rm -f %t/dummy.o %t/1.o.thinlto.bc +; RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin /dev/null -o %t/dummy.o +; RUN: %lld --thinlto-emit-index-files -dylib %t/dummy.o --start-lib %t/1.o --end-lib -o %t/8 ; RUN: ls %t/8 ; RUN: ls %t/1.o.thinlto.bc diff --git a/lld/test/MachO/thinlto-index-only.ll b/lld/test/MachO/thinlto-index-only.ll index 13453c4..54819a2 100644 --- a/lld/test/MachO/thinlto-index-only.ll +++ b/lld/test/MachO/thinlto-index-only.ll @@ -44,9 +44,9 @@ ; RUN: ls %t/1.o.imports ;; Ensure LLD generates an empty index for each bitcode file even if all bitcode files are lazy. -; RUN: rm -f %t/1.o.thinlto.bc -; RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin /dev/null -o dummy.o -; RUN: %lld --thinlto-index-only -dylib dummy.o --start-lib %t/1.o --end-lib -o /dev/null +; RUN: rm -f %t/dummy.o %t/1.o.thinlto.bc +; RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin /dev/null -o %t/dummy.o +; RUN: %lld --thinlto-index-only -dylib %t/dummy.o --start-lib %t/1.o --end-lib -o /dev/null ; RUN: ls %t/1.o.thinlto.bc ;; Ensure when the same bitcode object is given as both lazy and non-lazy, -- 2.7.4