summaryrefslogtreecommitdiffstats
path: root/dwarflint/tests
diff options
context:
space:
mode:
authorPetr Machata <[email protected]>2011-03-07 17:30:15 +0100
committerPetr Machata <[email protected]>2011-03-07 17:30:15 +0100
commit427f6c53451744b15dbac6a0a4a5d120053b1e56 (patch)
treebe1b0eba1b0978c5d03a5fe2cec44915f20929ca /dwarflint/tests
parent43423ee7e421b01e23696692f8a30201cd1a3826 (diff)
dwarflint: Fail low-level cases if toplevel CU DIE has wrong tag
Diffstat (limited to 'dwarflint/tests')
-rw-r--r--dwarflint/tests/garbage-2.bz2bin0 -> 2764 bytes
-rwxr-xr-xdwarflint/tests/run-bad.sh6
2 files changed, 5 insertions, 1 deletions
diff --git a/dwarflint/tests/garbage-2.bz2 b/dwarflint/tests/garbage-2.bz2
new file mode 100644
index 00000000..3cd56192
--- /dev/null
+++ b/dwarflint/tests/garbage-2.bz2
Binary files differ
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