[lld] r355748 - [LLD] Fixed flaky unit test based on build directory.

Mitch Phillips via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 8 14:33:22 PST 2019


Author: hctim
Date: Fri Mar  8 14:33:22 2019
New Revision: 355748

URL: http://llvm.org/viewvc/llvm-project?rev=355748&view=rev
Log:
[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.

Modified:
    lld/trunk/test/ELF/lto/linker-script-symbols.ll

Modified: lld/trunk/test/ELF/lto/linker-script-symbols.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/linker-script-symbols.ll?rev=355748&r1=355747&r2=355748&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/linker-script-symbols.ll (original)
+++ lld/trunk/test/ELF/lto/linker-script-symbols.ll Fri Mar  8 14:33:22 2019
@@ -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




More information about the llvm-commits mailing list