diff options
author | pooryorick <com.digitalsmarties@pooryorick.com> | 2023-03-16 08:15:03 (GMT) |
---|---|---|
committer | pooryorick <com.digitalsmarties@pooryorick.com> | 2023-03-16 08:15:03 (GMT) |
commit | 5846b1666f9fda4d12d9cc46f8bd2050b1ed4ef4 (patch) | |
tree | 6d57a469986ee02f25946ae71b0470e497279971 /unix/Makefile.in | |
parent | 70cf69246f83c91f78fd4de65ac48fa39aa634d4 (diff) | |
download | tcl-5846b1666f9fda4d12d9cc46f8bd2050b1ed4ef4.zip tcl-5846b1666f9fda4d12d9cc46f8bd2050b1ed4ef4.tar.gz tcl-5846b1666f9fda4d12d9cc46f8bd2050b1ed4ef4.tar.bz2 |
Make valgrind_foreach target in Makefile.in properly handle interrupted tests.
Diffstat (limited to 'unix/Makefile.in')
-rw-r--r-- | unix/Makefile.in | 5 |
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)))) |