summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-04-25 15:20:19 +0200
committerJim Meyering <meyering@redhat.com>2008-04-27 21:31:33 +0200
commit5a3b0c4805630ab0d509b54987c284cac16d2de5 (patch)
tree3f73c86f145311c9758d7603d982c18fcb7ecdd0 /build-aux
parent972e2737abf30c522c029051a13354756413ea46 (diff)
downloadcoreutils-5a3b0c4805630ab0d509b54987c284cac16d2de5.tar.xz
tests: remove temporary log file upon catchable signal
* check.mk (am__check_pre): Add signal handler to remove $@-t.
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/check.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/build-aux/check.mk b/build-aux/check.mk
index be255c4ca..9d909c6f1 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=; \