mirror of
https://github.com/openharmony/third_party_elfutils.git
synced 2026-07-18 09:17:34 -04:00
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 <kurt@roeckx.be> Signed-off-by: Mark Wielaard <mark@klomp.org>
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2018-11-21 Mark Wielaard <mark@klomp.org>
|
||||
|
||||
* backtrace-subr.sh (check_unsupported): Call test_cleanup before
|
||||
exit.
|
||||
|
||||
2018-11-17 Mark Wielaard <mark@klomp.org>
|
||||
|
||||
* run-strip-version.sh: New test.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user