summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpooryorick <com.digitalsmarties@pooryorick.com>2023-03-16 08:15:03 (GMT)
committerpooryorick <com.digitalsmarties@pooryorick.com>2023-03-16 08:15:03 (GMT)
commit5846b1666f9fda4d12d9cc46f8bd2050b1ed4ef4 (patch)
tree6d57a469986ee02f25946ae71b0470e497279971
parent70cf69246f83c91f78fd4de65ac48fa39aa634d4 (diff)
downloadtcl-5846b1666f9fda4d12d9cc46f8bd2050b1ed4ef4.zip
tcl-5846b1666f9fda4d12d9cc46f8bd2050b1ed4ef4.tar.gz
tcl-5846b1666f9fda4d12d9cc46f8bd2050b1ed4ef4.tar.bz2
Make valgrind_foreach target in Makefile.in properly handle interrupted tests.
-rw-r--r--unix/Makefile.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in
index da057d8..e092a2d 100644
--- a/unix/Makefile.in
+++ b/unix/Makefile.in
@@ -956,7 +956,8 @@ testresults/valgrind/%.result: ${TCL_EXE} ${TCLTEST_EXE}
@mkdir -p testresults/valgrind
$(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ./${TCLTEST_EXE} \
$(TOP_DIR)/tests/all.tcl -singleproc 1 -constraints valgrind \
- -file $(basename $(notdir $@)) > $@ 2>&1
+ -file $(basename $(notdir $@)) > $@.tmp 2>&1
+ @mv $@.tmp $@
.PRECIOUS: testresults/valgrind/%.result
@@ -966,7 +967,7 @@ testresults/valgrind/%.success: testresults/valgrind/%.result
@printf '\n >&2'
@status=$$(./${TCLTEST_EXE} $(TOP_DIR)/tools/valgrind_check_success \
file $(basename $@).result); \
- if [ "$$status" -eq 1 ]; then exit 0; else exit 1; fi
+ if [ "$$status" -eq 1 ]; then touch $@; exit 0; else exit 1; fi
valgrind_each: $(addprefix testresults/valgrind/,$(addsuffix .success,$(notdir\
$(wildcard $(TOP_DIR)/tests/*.test))))