summaryrefslogtreecommitdiffstats
path: root/tests/exec.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-24 14:50:11 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-24 14:50:11 (GMT)
commit63855497af431a6ee84d67b62ade8694485d76c9 (patch)
tree8239e1a67cec1bb976b23a1d96024097fc93b8a1 /tests/exec.test
parentfe94c1d6c4fa1c0d810d2eb6b845e7d0faf8812c (diff)
parent48d0827130389368a247f26b480bd819a1c753e5 (diff)
downloadtcl-63855497af431a6ee84d67b62ade8694485d76c9.zip
tcl-63855497af431a6ee84d67b62ade8694485d76c9.tar.gz
tcl-63855497af431a6ee84d67b62ade8694485d76c9.tar.bz2
Merge 8.7
Diffstat (limited to 'tests/exec.test')
-rw-r--r--tests/exec.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/exec.test b/tests/exec.test
index 36aeae5..5082393 100644
--- a/tests/exec.test
+++ b/tests/exec.test
@@ -14,8 +14,10 @@
# There is no point in running Valgrind on cases where [exec] forks but then
# fails and the child process doesn't go through full cleanup.
-package require tcltest 2
-namespace import -force ::tcltest::*
+if {"::tcltest" ni [namespace children]} {
+ package require tcltest 2.5
+ namespace import -force ::tcltest::*
+}
loadTestedCommands
catch [list package require -exact Tcltest [info patchlevel]]