mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-16 02:09:14 +00:00
[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. llvm-svn: 361621
This commit is contained in:
parent
96ae40c830
commit
7499b1f2ec
@ -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:
|
||||
|
@ -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() {
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user