summaryrefslogtreecommitdiff
path: root/dwarflint/tests/run-bad.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dwarflint/tests/run-bad.sh')
-rwxr-xr-xdwarflint/tests/run-bad.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/dwarflint/tests/run-bad.sh b/dwarflint/tests/run-bad.sh
index 5dd64956..871fe551 100755
--- a/dwarflint/tests/run-bad.sh
+++ b/dwarflint/tests/run-bad.sh
@@ -27,7 +27,7 @@
srcdir=$srcdir/tests
-testfiles hello.bad-1 hello.bad-3 garbage-1
+testfiles hello.bad-1 hello.bad-3 garbage-1 garbage-2
testrun_compare ./dwarflint hello.bad-1 <<EOF
error: .debug_info: DIE 0x83: abbrev section at 0x0 doesn't contain code 83.
@@ -46,3 +46,7 @@ error: Broken ELF: offset out of range.
error: .debug_abbrev: data not found.
error: .debug_info: data not found.
EOF
+
+testrun_compare ./dwarflint garbage-2 <<EOF
+error: .debug_info: CU 0: toplevel DIE must be either compile_unit or partial_unit.
+EOF