summaryrefslogtreecommitdiffstats
path: root/library/tcltest
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-11-30 20:45:21 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-11-30 20:45:21 (GMT)
commitd526e52856c864ba6af3ae8a0b83fc2a9faa06cf (patch)
treecb38f62a8d661196ca8b67e5f4d3fe0e61556576 /library/tcltest
parent39cc9d8a23ee168b1a7330b4ff649d58e28e2a26 (diff)
downloadtcl-d526e52856c864ba6af3ae8a0b83fc2a9faa06cf.zip
tcl-d526e52856c864ba6af3ae8a0b83fc2a9faa06cf.tar.gz
tcl-d526e52856c864ba6af3ae8a0b83fc2a9faa06cf.tar.bz2
[Bug 967195]: Make tcltest work when tclsh is compiled without using the setargv() function on mingw
(no need to incr the version, since 2.2.10 is never released)
Diffstat (limited to 'library/tcltest')
-rw-r--r--library/tcltest/tcltest.tcl12
1 files changed, 10 insertions, 2 deletions
diff --git a/library/tcltest/tcltest.tcl b/library/tcltest/tcltest.tcl
index 8e70628..4ae1480c 100644
--- a/library/tcltest/tcltest.tcl
+++ b/library/tcltest/tcltest.tcl
@@ -483,8 +483,10 @@ namespace eval tcltest {
variable Verify
variable Usage
variable OptionControlledVariables
+ variable DefaultValue
set Usage($option) $usage
set Verify($option) $verify
+ set DefaultValue($option) $value
if {[catch {$verify $value} msg]} {
return -code error $msg
} else {
@@ -707,7 +709,7 @@ namespace eval tcltest {
}
}
}
- Option -limitconstraints false {
+ Option -limitconstraints 0 {
whether to run only tests with the constraints
} AcceptBoolean limitConstraints
trace variable Option(-limitconstraints) w \
@@ -2664,6 +2666,7 @@ proc tcltest::runAllTests { {shell ""} } {
variable numTestFiles
variable numTests
variable failFiles
+ variable DefaultValue
FillFilesExisted
if {[llength [info level 0]] == 1} {
@@ -2728,7 +2731,12 @@ proc tcltest::runAllTests { {shell ""} } {
set childargv [list]
foreach opt [Configure] {
if {[string equal $opt -outfile]} {continue}
- lappend childargv $opt [Configure $opt]
+ set value [Configure $opt]
+ # Don't bother passing default configuration options
+ if {[string equal $value $DefaultValue($opt)]} {
+ continue
+ }
+ lappend childargv $opt $value
}
set cmd [linsert $childargv 0 | $shell $file]
if {[catch {