[llvm] r330121 - [test] Avoid spurious failure in debug-names-find.s. NFC.

Pavel Labath via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 16 04:16:42 PDT 2018


Author: labath
Date: Mon Apr 16 04:16:41 2018
New Revision: 330121

URL: http://llvm.org/viewvc/llvm-project?rev=330121&view=rev
Log:
[test] Avoid spurious failure in debug-names-find.s. NFC.

Have llvm-dwarfdump take input from stdin to avoid leaking the host paths into
the tests, causing nondeterministic failures.

Modified:
    llvm/trunk/test/tools/llvm-dwarfdump/X86/debug-names-find.s

Modified: llvm/trunk/test/tools/llvm-dwarfdump/X86/debug-names-find.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-dwarfdump/X86/debug-names-find.s?rev=330121&r1=330120&r2=330121&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-dwarfdump/X86/debug-names-find.s (original)
+++ llvm/trunk/test/tools/llvm-dwarfdump/X86/debug-names-find.s Mon Apr 16 04:16:41 2018
@@ -1,7 +1,7 @@
 # RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj -o %t
-# RUN: llvm-dwarfdump -find=foo %t | FileCheck --check-prefix=FOO %s
-# RUN: llvm-dwarfdump -find=baz %t | FileCheck --check-prefix=BAZ %s
-# RUN: llvm-dwarfdump -find=missing %t | FileCheck --check-prefix=MISSING %s
+# RUN: llvm-dwarfdump -find=foo - <%t | FileCheck --check-prefix=FOO %s
+# RUN: llvm-dwarfdump -find=baz - <%t | FileCheck --check-prefix=BAZ %s
+# RUN: llvm-dwarfdump -find=missing - <%t | FileCheck --check-prefix=MISSING %s
 
 # FOO: DW_TAG_subprogram
 # FOO-NEXT: DW_AT_name ("foo")




More information about the llvm-commits mailing list