]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Add a test case for no aranges table associated with CU
authorPetr Machata <pmachata@redhat.com>
Tue, 12 Oct 2010 11:37:53 +0000 (13:37 +0200)
committerPetr Machata <pmachata@redhat.com>
Tue, 12 Oct 2010 11:37:53 +0000 (13:37 +0200)
- for CU that has a zero address range

dwarflint/tests/check_debug_info_refs-2.bz2 [new file with mode: 0644]
dwarflint/tests/run-check_debug_info_refs.sh

diff --git a/dwarflint/tests/check_debug_info_refs-2.bz2 b/dwarflint/tests/check_debug_info_refs-2.bz2
new file mode 100644 (file)
index 0000000..0474929
Binary files /dev/null and b/dwarflint/tests/check_debug_info_refs-2.bz2 differ
index a1f80a8f9986e486c6d2c82293d938500be9a335..88cdcb04be9af42a04442b40019f1bf1d9738394 100755 (executable)
@@ -27,7 +27,7 @@
 
 srcdir=$srcdir/tests
 
-testfiles check_debug_info_refs-1
+testfiles check_debug_info_refs-{1,2}
 
 testrun_compare ./dwarflint --check=check_debug_info_refs check_debug_info_refs-1 <<EOF
 error: .debug_aranges: table 48 (CU DIE 95): there has already been arange section for this CU.
@@ -37,3 +37,9 @@ testrun_compare ./dwarflint --strict --check=check_debug_info_refs check_debug_i
 error: .debug_aranges: table 48 (CU DIE 95): there has already been arange section for this CU.
 warning: .debug_info: CU 0: no aranges table is associated with this CU.
 EOF
+
+testrun_compare ./dwarflint --strict --check=check_debug_info_refs check_debug_info_refs-2 <<EOF
+warning: .debug_line: table 0: empty line number program.
+error: .debug_line: table 0: sequence of opcodes not terminated with DW_LNE_end_sequence.
+warning: .debug_info: CU 0: no aranges table is associated with this CU.
+EOF