From: Jim Meyering Date: Fri, 25 Apr 2008 13:20:19 +0000 (+0200) Subject: tests: remove temporary log file upon catchable signal X-Git-Tag: v6.12~85 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a3b0c4805630ab0d509b54987c284cac16d2de5;p=thirdparty%2Fcoreutils.git tests: remove temporary log file upon catchable signal * check.mk (am__check_pre): Add signal handler to remove $@-t. --- diff --git a/build-aux/check.mk b/build-aux/check.mk index be255c4ca4..9d909c6f1f 100644 --- a/build-aux/check.mk +++ b/build-aux/check.mk @@ -104,6 +104,8 @@ am__check_pre = \ $(SH_E_WORKAROUND); \ tst=`echo "$$src" | sed 's|^.*/||'`; \ rm -f $@-t; \ +trap 'st=$$?; rm -f '\''$(abs_builddir)/$@-t'\''; (exit $$st); exit $$st' \ + 1 2 13 15; \ $(mkdir_p) "$$(echo '$@'|$(_dirname))" || exit; \ if test -f "./$$src"; then dir=./; \ elif test -f "$$src"; then dir=; \