[PATCH] D99271: [lld-macho][nfc] Fixed test so it output to %t/ rather than current directory.

Vy Nguyen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 24 08:50:05 PDT 2021


oontvoo created this revision.
oontvoo added reviewers: gribozavr2, int3.
Herald added a project: lld-macho.
Herald added a reviewer: lld-macho.
oontvoo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The a.out broke our build.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99271

Files:
  lld/test/MachO/dependency-info.s


Index: lld/test/MachO/dependency-info.s
===================================================================
--- lld/test/MachO/dependency-info.s
+++ lld/test/MachO/dependency-info.s
@@ -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 {{.*}}
@@ -20,12 +20,12 @@
 # CHECK-DAG: input-file: {{.*}}/libfoo.dylib
 # CHECK-DAG: input-file: {{.*}}/libSystem.tbd
 # CHECK-DAG: input-file: {{.*}}/main.o
-# CHECK-DAG: bar.o
+# CHECK-DAG: {{.*}}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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99271.333011.patch
Type: text/x-patch
Size: 1073 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210324/0e0b84fe/attachment.bin>


More information about the llvm-commits mailing list