From 3685f84d8c0abfbddd12e034561e5f3fe8cbf2eb Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sun, 11 Oct 2015 13:00:56 +0200 Subject: tests: ensure sponge-files are cleaned up properly Git-Dch: Ignore --- test/integration/run-tests | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/integration') diff --git a/test/integration/run-tests b/test/integration/run-tests index 87cc292d7..f2a266139 100755 --- a/test/integration/run-tests +++ b/test/integration/run-tests @@ -47,6 +47,8 @@ fi if [ -n "$TESTTORUN" ]; then # collecting the output of one test to have it together OUTPUT="$(mktemp)" + CURRENTTRAP="rm -f \"$OUTPUT\"; $CURRENTTRAP" + trap "$CURRENTTRAP" 0 HUP INT QUIT ILL ABRT FPE SEGV PIPE TERM { if [ "$MSGLEVEL" -le 2 ]; then printf "${CTEST}Testcase ${CHIGH}${TESTTORUN##*/}${CRESET}: " -- cgit v1.2.3