summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-06-21 16:45:17 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-06-21 16:45:17 (GMT)
commit8d94e515a1b9ff2044435c145b20d5bb66c24b43 (patch)
tree9c6a8f211891fc50232125f07ebe5fa73d7129a5 /library
parentf271c4ad0a19d06b3f42aa7ab22f92a4ebc0879e (diff)
downloadtcl-8d94e515a1b9ff2044435c145b20d5bb66c24b43.zip
tcl-8d94e515a1b9ff2044435c145b20d5bb66c24b43.tar.gz
tcl-8d94e515a1b9ff2044435c145b20d5bb66c24b43.tar.bz2
tcltest 2.3.3 fixes:
* Use [package ifneeded] so slave gets exactly same tcltest version as master * Use [configure] command instead of legacy ::argv magic to pass tcltest configuration options to slave interp. Test files using the new [loadIntoSlaveInterpreter] command updated to declare their need for tcltest 2.3.3 as minimum acceptable release.
Diffstat (limited to 'library')
-rw-r--r--library/tcltest/tcltest.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/tcltest/tcltest.tcl b/library/tcltest/tcltest.tcl
index ad61f9c..af809f6 100644
--- a/library/tcltest/tcltest.tcl
+++ b/library/tcltest/tcltest.tcl
@@ -797,8 +797,8 @@ namespace eval tcltest {
proc loadIntoSlaveInterpreter {slave args} {
variable Version
- interp eval $slave [list set ::argv $args]
- interp eval $slave [list package require tcltest $Version]
+ interp eval $slave [package ifneeded tcltest $Version]
+ interp eval $slave "tcltest::configure {*}{$args}"
interp alias $slave ::tcltest::ReportToMaster \
{} ::tcltest::ReportedFromSlave
}