From 562569f33cf9570a6fb7f412de859627dfb735be Mon Sep 17 00:00:00 2001 From: NHOrus Date: Sat, 1 Jul 2017 11:50:49 +0300 Subject: [PATCH] Putting cleanup in the right place, too --- tests/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index afc7fdf..a7a55f1 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -70,7 +70,7 @@ savecheck: savegames advent -l / < pitfall.log > /tmp/coverage_advent_logfail 2>&1 || exit 1 $(ECHO) "TEST advent: Test -r with valid input" advent -r thousand_saves.adv < pitfall.log > /tmp/coverage_advent_readfail 2>&1 || exit 1 - rm -f scratch.tmp /tmp/regress$$$$ /tmp/coverage* + rm -f scratch.tmp /tmp/coverage* # General regression testing of commands and output; look at the *.log and # corresponding *.chk files to see which tests this runs. @@ -81,6 +81,7 @@ regress: if advent $$OPTS < $${file}.log >/tmp/regress$$$$ 2>&1; \ then diff --text -u $${file}.chk /tmp/regress$$$$ || exit 1; \ else echo "*** Nonzero return status on $${file}!"; exit 1; fi \ - done; + done; \ + rm -f /tmp/regress$$$$ # end -- 2.31.1