]> git.ipfire.org Git - thirdparty/elfutils.git/commit
tests: Tests that override EXIT (0) trap need to cleanup themselves.
authorMark Wielaard <mjw@redhat.com>
Sat, 27 Apr 2013 21:15:44 +0000 (23:15 +0200)
committerMark Wielaard <mjw@redhat.com>
Mon, 29 Apr 2013 17:30:18 +0000 (19:30 +0200)
commit527e21ec4de92870f1b4c88b9465dc010e926260
tree848dff44a701c279bc67c636eefc21f08cdbc01f
parentb0f202e15fc6ab34381c0b96325221aab874250d
tests: Tests that override EXIT (0) trap need to cleanup themselves.

Since trap handlers don't nest tests that install their own EXIT (0) trap
handler need to cleanup themselves. Add an exit_cleanup helper function
to test-subr.sh that can be used by run-native-test.sh to exit cleanly.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
tests/ChangeLog
tests/run-native-test.sh
tests/test-subr.sh