From: Mark Wielaard Date: Wed, 21 Nov 2018 19:07:14 +0000 (+0100) Subject: tests: Call test_cleanup in backtrace-subr.sh check_unsupported. X-Git-Tag: elfutils-0.176~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=628b4a93c6863b9982d817db6acaacbc4e116453;p=thirdparty%2Felfutils.git tests: Call test_cleanup in backtrace-subr.sh check_unsupported. We want to make sure all (temporary) test files are cleaned up even when we exit 77 to skip the testcase. https://sourceware.org/bugzilla/show_bug.cgi?id=23901 Tested-by: Kurt Roeckx Signed-off-by: Mark Wielaard --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 08358d299..f6b0a6725 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2018-11-21 Mark Wielaard + + * backtrace-subr.sh (check_unsupported): Call test_cleanup before + exit. + 2018-11-17 Mark Wielaard * run-strip-version.sh: New test. diff --git a/tests/backtrace-subr.sh b/tests/backtrace-subr.sh index ff42c6ffd..53c719dfe 100644 --- a/tests/backtrace-subr.sh +++ b/tests/backtrace-subr.sh @@ -85,6 +85,7 @@ check_unsupported() testname=$2 if grep -q ': Unwinding not supported for this architecture$' $err; then echo >&2 $testname: arch not supported + test_cleanup exit 77 fi }