[lld-macho][nfc] Fixed test so it output to %t/ rather than current directory.
authorVy Nguyen <vyng@google.com>
Wed, 24 Mar 2021 15:48:47 +0000 (11:48 -0400)
committerVy Nguyen <vyng@google.com>
Wed, 24 Mar 2021 20:55:37 +0000 (16:55 -0400)
The a.out broke our build.

Differential Revision: https://reviews.llvm.org/D99271

lld/test/MachO/dependency-info.s

index 93c58443fbc3a9b87e16b20ab191d564ddc91a7a..a05445bcd652595e89c2901ada1d5320a0544aa8 100644 (file)
@@ -12,7 +12,7 @@
 # RUN: llvm-ar csr  %t/bar.a %t/bar.o
 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/main.o %t/main.s
 
-# RUN: %lld %t/main.o %t/bar.a %t/libfoo.dylib -lSystem -dependency_info %t/deps_info.out
+# RUN: %lld %t/main.o %t/bar.a %t/libfoo.dylib -lSystem -o %t/test.out -dependency_info %t/deps_info.out
 # RUN: %python %S/Inputs/DependencyDump.py %t/deps_info.out | FileCheck %s
 
 # CHECK: lld-version: {{.*}}LLD {{.*}}
 # CHECK-DAG: input-file: {{.*}}/libfoo.dylib
 # CHECK-DAG: input-file: {{.*}}/libSystem.tbd
 # CHECK-DAG: input-file: {{.*}}/main.o
-# CHECK-DAG: bar.o
+# CHECK-DAG: input-file: {{.*}}bar.o
 
 # CHECK-NEXT: not-found: {{.*}}/libdyld.dylib
 ## There could be more not-found here but we are not checking those because it's brittle.
 
-# CHECK: output-file: a.out
+# CHECK: output-file: {{.*}}/test.out
 
 #--- foo.s
 .globl __Z3foo