diff options
author | dgp <dgp@users.sourceforge.net> | 2011-06-21 16:45:17 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2011-06-21 16:45:17 (GMT) |
commit | 7837fe117b6e9e0385bf380935d1f0d74e283e81 (patch) | |
tree | 9c6a8f211891fc50232125f07ebe5fa73d7129a5 /library | |
parent | 0c1d50b5d230f470ea73d00d3f93eb88e6828a60 (diff) | |
download | tcl-7837fe117b6e9e0385bf380935d1f0d74e283e81.zip tcl-7837fe117b6e9e0385bf380935d1f0d74e283e81.tar.gz tcl-7837fe117b6e9e0385bf380935d1f0d74e283e81.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.tcl | 4 |
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 } |