From 874b7faaa91fe4fbf9c8e0fdc145462064528d8b Mon Sep 17 00:00:00 2001 From: James Henderson Date: Fri, 24 May 2019 10:07:24 +0000 Subject: [PATCH] [llvm-objdump][test] Fix for spurious matches against file paths r361479 added tests that did --implicit-check-not=main, but a user found that they failed on his machine, due to it having 'main' in a file path printed earlier in the output. This test fixes this issue by making the check pattern more explicit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361621 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../X86/source-interleave-missing-source.test | 2 +- .../X86/source-interleave-no-debug-info.test | 2 +- .../X86/source-interleave-relative-paths.test | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/test/tools/llvm-objdump/X86/source-interleave-missing-source.test b/test/tools/llvm-objdump/X86/source-interleave-missing-source.test index 166caeb41b5..d9877284721 100644 --- a/test/tools/llvm-objdump/X86/source-interleave-missing-source.test +++ b/test/tools/llvm-objdump/X86/source-interleave-missing-source.test @@ -7,7 +7,7 @@ # RUN: llc -o %t.o -filetype=obj -mtriple=x86_64-pc-linux %t.ll # RUN: llc -o %t2.o -filetype=obj -mtriple=x86_64-pc-linux %t2.ll -# RUN: llvm-objdump --source %t.o | FileCheck %s --implicit-check-not=main +# RUN: llvm-objdump --source %t.o | FileCheck %s --implicit-check-not='main()' # RUN: llvm-objdump --source %t2.o | FileCheck %s --check-prefixes=CHECK,SOURCE # CHECK: 0000000000000010 main: diff --git a/test/tools/llvm-objdump/X86/source-interleave-no-debug-info.test b/test/tools/llvm-objdump/X86/source-interleave-no-debug-info.test index 4a0a34a9eae..15f7b7ecb22 100644 --- a/test/tools/llvm-objdump/X86/source-interleave-no-debug-info.test +++ b/test/tools/llvm-objdump/X86/source-interleave-no-debug-info.test @@ -6,7 +6,7 @@ # RUN: llvm-objcopy --strip-debug %t.o %t2.o # RUN: llvm-objdump --source %t.o | FileCheck %s --check-prefixes=CHECK,SOURCE -# RUN: llvm-objdump --source %t2.o | FileCheck %s --implicit-check-not=main +# RUN: llvm-objdump --source %t2.o | FileCheck %s --implicit-check-not='main()' # CHECK: 0000000000000010 main: # SOURCE-NEXT: ; int main() { diff --git a/test/tools/llvm-objdump/X86/source-interleave-relative-paths.test b/test/tools/llvm-objdump/X86/source-interleave-relative-paths.test index f9c69dfc0c0..baf4ec919c0 100644 --- a/test/tools/llvm-objdump/X86/source-interleave-relative-paths.test +++ b/test/tools/llvm-objdump/X86/source-interleave-relative-paths.test @@ -17,18 +17,18 @@ # RUN: cd %t # RUN: llvm-objdump --source a/a.o | FileCheck %s --check-prefixes=CHECK,SOURCE -# RUN: llvm-objdump --source a/b.o | FileCheck %s --implicit-check-not=main -# RUN: llvm-objdump --source a/c.o | FileCheck %s --implicit-check-not=main -# RUN: llvm-objdump --source a/d.o | FileCheck %s --implicit-check-not=main +# RUN: llvm-objdump --source a/b.o | FileCheck %s --implicit-check-not='main()' +# RUN: llvm-objdump --source a/c.o | FileCheck %s --implicit-check-not='main()' +# RUN: llvm-objdump --source a/d.o | FileCheck %s --implicit-check-not='main()' # RUN: cd a -# RUN: llvm-objdump --source a.o | FileCheck %s --implicit-check-not=main +# RUN: llvm-objdump --source a.o | FileCheck %s --implicit-check-not='main()' # RUN: llvm-objdump --source b.o | FileCheck %s --check-prefixes=CHECK,SOURCE # RUN: llvm-objdump --source c.o | FileCheck %s --check-prefixes=CHECK,SOURCE -# RUN: llvm-objdump --source d.o | FileCheck %s --implicit-check-not=main +# RUN: llvm-objdump --source d.o | FileCheck %s --implicit-check-not='main()' # RUN: cd b -# RUN: llvm-objdump --source ../a.o | FileCheck %s --implicit-check-not=main -# RUN: llvm-objdump --source ../b.o | FileCheck %s --implicit-check-not=main -# RUN: llvm-objdump --source ../c.o | FileCheck %s --implicit-check-not=main +# RUN: llvm-objdump --source ../a.o | FileCheck %s --implicit-check-not='main()' +# RUN: llvm-objdump --source ../b.o | FileCheck %s --implicit-check-not='main()' +# RUN: llvm-objdump --source ../c.o | FileCheck %s --implicit-check-not='main()' # RUN: llvm-objdump --source ../d.o | FileCheck %s --check-prefixes=CHECK,SOURCE # CHECK: 0000000000000010 main: -- 2.11.0