summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Phillips <mitchphillips@outlook.com>2019-03-08 22:33:22 +0000
committerMitch Phillips <mitchphillips@outlook.com>2019-03-08 22:33:22 +0000
commit88bea2b49b6f0afcad5aead501675619f19e1b2c (patch)
tree4f352c8a1aa4dea4669bde8a3db7c2df17f0ea48
parent7b374be9465205c12c6f59a3cb13157d4d932b4a (diff)
downloadbcm5719-llvm-88bea2b49b6f0afcad5aead501675619f19e1b2c.tar.gz
bcm5719-llvm-88bea2b49b6f0afcad5aead501675619f19e1b2c.zip
[LLD] Fixed flaky unit test based on build directory.
This unit test fails if 'zed' appears in your build path, as lld is echoing out the path of the source file. Change the unit test to explicitly only match everything after the 'Symbols [' line of the output, to make sure that this test doesn't inadvertently fail due to the build path. llvm-svn: 355748
-rw-r--r--lld/test/ELF/lto/linker-script-symbols.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/test/ELF/lto/linker-script-symbols.ll b/lld/test/ELF/lto/linker-script-symbols.ll
index 28758c05206..1c73a2dadf2 100644
--- a/lld/test/ELF/lto/linker-script-symbols.ll
+++ b/lld/test/ELF/lto/linker-script-symbols.ll
@@ -5,6 +5,7 @@
; RUN: ld.lld %t.o -o %t2 --script %t.script -save-temps
; RUN: llvm-readobj -symbols %t2.lto.o | FileCheck %s
+; CHECK: Symbols [
; CHECK-NOT: zed
; CHECK: Symbol {
; CHECK: Name: bar
OpenPOWER on IntegriCloud