diff options
author | pooryorick <com.digitalsmarties@pooryorick.com> | 2023-03-03 12:17:15 (GMT) |
---|---|---|
committer | pooryorick <com.digitalsmarties@pooryorick.com> | 2023-03-03 12:17:15 (GMT) |
commit | 18385b8363055c0a5ec837970c023c5562792cc6 (patch) | |
tree | 189deb3a8ad9ba68bf4f9de0f426676b37cb80c3 /unix | |
parent | 4d674569535d565275d4a4d4a16a8c63ed7c41f9 (diff) | |
parent | d3aa6839f45e33d533ae9525378612cb04ab0dd1 (diff) | |
download | tcl-18385b8363055c0a5ec837970c023c5562792cc6.zip tcl-18385b8363055c0a5ec837970c023c5562792cc6.tar.gz tcl-18385b8363055c0a5ec837970c023c5562792cc6.tar.bz2 |
Fix Valgrind "still reachable" report in TestcmdtokenCmd().
Diffstat (limited to 'unix')
-rw-r--r-- | unix/Makefile.in | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in index dcaf6e3..097853d 100644 --- a/unix/Makefile.in +++ b/unix/Makefile.in @@ -952,6 +952,27 @@ valgrind: ${TCL_EXE} ${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl -singleproc 1 -constraints valgrind \ $(TESTFLAGS) +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 +.PRECIOUS: testresults/valgrind/%.result + + +testresults/valgrind/%.success: testresults/valgrind/%.result + @printf '%s' valgrind >&2 + @printf ' %s' $(basename $(notdir $@)) >&2 + @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 + + +valgrind_each: $(addprefix testresults/valgrind/,$(addsuffix .success,$(notdir\ + $(wildcard $(TOP_DIR)/tests/*.test)))) + + valgrindshell: ${TCL_EXE} $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ./${TCL_EXE} $(SCRIPT) |