diff options
| author | Petr Machata <[email protected]> | 2011-03-03 17:02:47 +0100 |
|---|---|---|
| committer | Petr Machata <[email protected]> | 2011-03-03 17:02:47 +0100 |
| commit | aa67698e23bcffd74a678662ff674e761ff4d984 (patch) | |
| tree | 0f77829b8ac8777564f3100624f4efd7bbfd0da0 /dwarflint/tests | |
| parent | 61cdaa8098037898b62656a268b3c6d5985de4e3 (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.bz2 | bin | 0 -> 343 bytes | |||
| -rwxr-xr-x | dwarflint/tests/run-nodebug.sh | 12 |
2 files changed, 10 insertions, 2 deletions
diff --git a/dwarflint/tests/null.o.bz2 b/dwarflint/tests/null.o.bz2 Binary files differnew file mode 100644 index 00000000..f272d5a7 --- /dev/null +++ b/dwarflint/tests/null.o.bz2 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 |
