[PATCH] D71757: [test][llvm-dwarfdump] Use --implicit-check-not to simplify check
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 3 03:23:36 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7b4badf6f9ad: [test][llvm-dwarfdump] Use --implicit-check-not to simplify test checks (authored by jhenderson).
Changed prior to commit:
https://reviews.llvm.org/D71757?vs=234871&id=236014#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71757/new/
https://reviews.llvm.org/D71757
Files:
llvm/test/tools/llvm-dwarfdump/X86/debug_line_invalid.test
Index: llvm/test/tools/llvm-dwarfdump/X86/debug_line_invalid.test
===================================================================
--- llvm/test/tools/llvm-dwarfdump/X86/debug_line_invalid.test
+++ llvm/test/tools/llvm-dwarfdump/X86/debug_line_invalid.test
@@ -24,10 +24,10 @@
## Show that non-fatal errors do not prevent parsing the rest of the section.
# RUN: llvm-mc -triple x86_64-pc-linux %S/Inputs/debug_line_malformed.s -filetype=obj -o %t-malformed.o
# RUN: llvm-dwarfdump -debug-line %t-malformed.o 2> %t-malformed.err \
-# RUN: | FileCheck %s --check-prefixes=FIRST,NONFATAL
+# RUN: | FileCheck %s --check-prefixes=FIRST,NONFATAL,LAST --implicit-check-not='debug_line[{{.*}}]'
# RUN: FileCheck %s --input-file=%t-malformed.err --check-prefixes=ALL,OTHER
# RUN: llvm-dwarfdump -debug-line %t-malformed.o -verbose 2> %t-malformed-verbose.err \
-# RUN: | FileCheck %s --check-prefixes=FIRST,NONFATAL
+# RUN: | FileCheck %s --check-prefixes=FIRST,NONFATAL,LAST --implicit-check-not='debug_line[{{.*}}]'
# RUN: FileCheck %s --input-file=%t-malformed-verbose.err --check-prefixes=ALL,OTHER
## We should still produce warnings for malformed tables after the specified unit.
@@ -37,7 +37,7 @@
## Don't stop looking for the later unit if non-fatal issues are found.
# RUN: llvm-dwarfdump -debug-line=0x2af %t-malformed.o 2> %t-malformed-off-last.err \
-# RUN: | FileCheck %s --check-prefixes=LASTONLY
+# RUN: | FileCheck %s --check-prefix=LAST --implicit-check-not='debug_line[{{.*}}]'
# RUN: FileCheck %s --input-file=%t-malformed-off-last.err --check-prefix=ALL
# FIRST: debug_line[0x00000000]
@@ -136,14 +136,8 @@
# NONFATAL-NEXT: Line table prologue
# NONFATAL-NOT: Address
-# NONFATAL: debug_line[0x000002af]
-# NONFATAL-NOT: debug_line[{{.*}}]
-# NONFATAL: 0x00000000cafebabe {{.*}} end_sequence
-# NONFATAL-NOT: debug_line[{{.*}}]
-
-# LASTONLY-NOT: debug_line[{{.*}}]
-# LASTONLY: debug_line[0x000002af]
-# LASTONLY: 0x00000000cafebabe {{.*}} end_sequence
+# LAST: debug_line[0x000002af]
+# LAST: 0x00000000cafebabe {{.*}} end_sequence
# RESERVED: warning: parsing line table prologue at offset 0x00000048 unsupported reserved unit length found of value 0xfffffffe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71757.236014.patch
Type: text/x-patch
Size: 2292 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200103/523552bf/attachment.bin>
More information about the llvm-commits
mailing list