]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: Call test_cleanup in backtrace-subr.sh check_unsupported.
authorMark Wielaard <mark@klomp.org>
Wed, 21 Nov 2018 19:07:14 +0000 (20:07 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 21 Nov 2018 19:07:14 +0000 (20:07 +0100)
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>
tests/ChangeLog
tests/backtrace-subr.sh

index 08358d2997a377da5351978100062c7f3995e972..f6b0a6725bc3d9138d2e37bfbffde6bdb19bd37b 100644 (file)
@@ -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.
index ff42c6ffda26b414015d7fa0f4cfa07be64d30a5..53c719dfe08775bc993a410e09cddf8aec27193e 100644 (file)
@@ -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
 }