summaryrefslogtreecommitdiffstats
path: root/dwarflint/tests
diff options
context:
space:
mode:
authorPetr Machata <[email protected]>2011-03-03 17:02:47 +0100
committerPetr Machata <[email protected]>2011-03-03 17:02:47 +0100
commitaa67698e23bcffd74a678662ff674e761ff4d984 (patch)
tree0f77829b8ac8777564f3100624f4efd7bbfd0da0 /dwarflint/tests
parent61cdaa8098037898b62656a268b3c6d5985de4e3 (diff)
dwarflint: Be lazy when looking into CU headers for check_debug_abbrev
- And so don't complain that we have no headers in cases where we have no abbrevs either. - Also consider no abbrevs a message, not an error - Add a test case for the same
Diffstat (limited to 'dwarflint/tests')
-rw-r--r--dwarflint/tests/null.o.bz2bin0 -> 343 bytes
-rwxr-xr-xdwarflint/tests/run-nodebug.sh12
2 files changed, 10 insertions, 2 deletions
diff --git a/dwarflint/tests/null.o.bz2 b/dwarflint/tests/null.o.bz2
new file mode 100644
index 00000000..f272d5a7
--- /dev/null
+++ b/dwarflint/tests/null.o.bz2
Binary files differ
diff --git a/dwarflint/tests/run-nodebug.sh b/dwarflint/tests/run-nodebug.sh
index 5bfc2c55..049bf570 100755
--- a/dwarflint/tests/run-nodebug.sh
+++ b/dwarflint/tests/run-nodebug.sh
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2010 Red Hat, Inc.
+# Copyright (C) 2010, 2011 Red Hat, Inc.
# This file is part of Red Hat elfutils.
#
# Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -27,7 +27,7 @@
srcdir=$srcdir/tests
-testfiles nodebug
+testfiles nodebug null.o
testrun_compare ./dwarflint nodebug <<EOF
error: .debug_abbrev: data not found.
@@ -69,3 +69,11 @@ nodebug:
nodebug:
warning: the rule \`oentuh' never matched.
EOF
+
+testrun_compare ./dwarflint null.o <<EOF
+error: .debug_info: data not found.
+EOF
+
+testrun_compare ./dwarflint --nodebug:ignore null.o <<EOF
+No errors
+EOF