summaryrefslogtreecommitdiffstats
path: root/tests/backtrace-subr.sh
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2017-04-24 13:35:47 +0200
committerMark Wielaard <[email protected]>2017-05-02 15:04:58 +0200
commit727a90c38613b728d83a1e6c8aad3c6974047cc9 (patch)
treec0bdb1508456f479f3d9a91ffc4b08a9dbd985e3 /tests/backtrace-subr.sh
parent575198c29a427392823cc8f2400579a23d06a875 (diff)
Revert "Optionally allow unknown symbols in the backtrace tests"
This reverts commit f9971cb422df39adea7e8c7e22689b879e39c626. Allowing no symbol resolving at all makes it too hard to see whether the test actually tests anything. But do keep "address out of range" as allowed error in check_err. This can be interpreted as DWARF not available (if end of callstack marker is missing, which it unfortunately often is missing even if CFI is available.). Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests/backtrace-subr.sh')
-rw-r--r--tests/backtrace-subr.sh12
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/backtrace-subr.sh b/tests/backtrace-subr.sh
index 5d3937c2..e746dc19 100644
--- a/tests/backtrace-subr.sh
+++ b/tests/backtrace-subr.sh
@@ -44,9 +44,6 @@ check_gsignal()
# In some cases we cannot reliably find out we got behind _start as some
# operating system do not properly terminate CFI by undefined PC.
# Ignore it here as it is a bug of OS, not a bug of elfutils.
-# If the CFI is not terminated correctly, we might find another frame by
-# checking for frame pointers. This is still not our problem, but only
-# gives an error message when trying to look up the function name.
check_err()
{
if [ $(egrep -v <$1 'dwfl_thread_getframes: (No DWARF information found|no matching address range|address out of range)$' \
@@ -64,9 +61,7 @@ check_all()
bt=$1
err=$2
testname=$3
- if [ "x$4" != "x--allow-unknown" ]; then
- check_main $bt $testname
- fi
+ check_main $bt $testname
check_gsignal $bt $testname
check_err $err $testname
}
@@ -103,14 +98,13 @@ check_native_unsupported()
check_core()
{
arch=$1
- args=$2
testfiles backtrace.$arch.{exec,core}
tempfiles backtrace.$arch.{bt,err}
echo ./backtrace ./backtrace.$arch.{exec,core}
- testrun ${abs_builddir}/backtrace $args -e ./backtrace.$arch.exec --core=./backtrace.$arch.core 1>backtrace.$arch.bt 2>backtrace.$arch.err || true
+ testrun ${abs_builddir}/backtrace -e ./backtrace.$arch.exec --core=./backtrace.$arch.core 1>backtrace.$arch.bt 2>backtrace.$arch.err || true
cat backtrace.$arch.{bt,err}
check_unsupported backtrace.$arch.err backtrace.$arch.core
- check_all backtrace.$arch.{bt,err} backtrace.$arch.core $args
+ check_all backtrace.$arch.{bt,err} backtrace.$arch.core
}
# Backtrace live process.