forked from OSchip/llvm-project
[test][llvm-dwarfdump] Add missing checks for table dumping
Some of the tables in debug_line_malformed.s were not being checked in the NONFATAL checks in debug_line_invalid.test (only the warnings coming from them were being checked). This made the test harder to follow. Additionally, a later change will change the way the errors are handled such that more of the line table will be printed. That will require checks for these tables (or something equivalent) so that the difference in behaviour can be observed. This patch adds checks for the three tables that were missing checks. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D71753
This commit is contained in:
parent
8dab0a4a7d
commit
91cbcbd9e5
|
@ -98,8 +98,22 @@
|
|||
## Case 8: Very short prologue length for V5 (ends during parameters).
|
||||
# NONFATAL: debug_line[0x00000183]
|
||||
# NONFATAL-NEXT: Line table prologue
|
||||
# NONFATAL-NOT: Address
|
||||
|
||||
## TODO: Add checks here for remaining tables.
|
||||
## Case 9: V5 prologue ends during file table.
|
||||
# NONFATAL: debug_line[0x000001be]
|
||||
# NONFATAL-NEXT: Line table prologue
|
||||
# NONFATAL-NOT: Address
|
||||
|
||||
## Case 10: V5 prologue ends during directory table.
|
||||
# NONFATAL: debug_line[0x000001f9]
|
||||
# NONFATAL-NEXT: Line table prologue
|
||||
# NONFATAL-NOT: Address
|
||||
|
||||
## Case 11: V5 invalid MD5 hash form.
|
||||
# NONFATAL: debug_line[0x00000234]
|
||||
# NONFATAL-NEXT: Line table prologue
|
||||
# NONFATAL-NOT: Address
|
||||
|
||||
# NONFATAL: debug_line[0x00000271]
|
||||
# NONFATAL-NOT: debug_line[{{.*}}]
|
||||
|
|
Loading…
Reference in New Issue