summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-02-03 18:51:10 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-02-03 18:51:10 (GMT)
commitf8d27459af191a22004f1fc5e15b18df09234315 (patch)
treeb56e23da37a7a9a7c020557476f5c52cadfd8671 /library
parent99ac58134e3ccfc2390b3d95c2ffece08ecfd521 (diff)
downloadtcl-f8d27459af191a22004f1fc5e15b18df09234315.zip
tcl-f8d27459af191a22004f1fc5e15b18df09234315.tar.gz
tcl-f8d27459af191a22004f1fc5e15b18df09234315.tar.bz2
* library/tcltest/tcltest.tcl: Corrected parsing of single
command line argument (option with missing value) [Bug 833910] * library/tcltest/pkgIndex.tcl: Bump to version 2.2.5.
Diffstat (limited to 'library')
-rw-r--r--library/tcltest/pkgIndex.tcl2
-rw-r--r--library/tcltest/tcltest.tcl11
2 files changed, 9 insertions, 4 deletions
diff --git a/library/tcltest/pkgIndex.tcl b/library/tcltest/pkgIndex.tcl
index 2d9b07e..5ddc69c 100644
--- a/library/tcltest/pkgIndex.tcl
+++ b/library/tcltest/pkgIndex.tcl
@@ -9,4 +9,4 @@
# full path name of this file's directory.
if {![package vsatisfies [package provide Tcl] 8.3]} {return}
-package ifneeded tcltest 2.2.4 [list source [file join $dir tcltest.tcl]]
+package ifneeded tcltest 2.2.5 [list source [file join $dir tcltest.tcl]]
diff --git a/library/tcltest/tcltest.tcl b/library/tcltest/tcltest.tcl
index 1d3a0b8..8e65566 100644
--- a/library/tcltest/tcltest.tcl
+++ b/library/tcltest/tcltest.tcl
@@ -16,7 +16,7 @@
# Contributions from Don Porter, NIST, 2002. (not subject to US copyright)
# All rights reserved.
#
-# RCS: @(#) $Id: tcltest.tcl,v 1.84 2003/07/18 21:15:13 dgp Exp $
+# RCS: @(#) $Id: tcltest.tcl,v 1.85 2004/02/03 18:51:10 dgp Exp $
package require Tcl 8.3 ;# uses [glob -directory]
namespace eval tcltest {
@@ -24,7 +24,7 @@ namespace eval tcltest {
# When the version number changes, be sure to update the pkgIndex.tcl file,
# and the install directory in the Makefiles. When the minor version
# changes (new feature) be sure to update the man page as well.
- variable Version 2.2.4
+ variable Version 2.2.5
# Compatibility support for dumb variables defined in tcltest 1
# Do not use these. Call [package provide Tcl] and [info patchlevel]
@@ -1419,7 +1419,7 @@ proc tcltest::ProcessFlags {flagArray} {
RemoveAutoConfigureTraces
} else {
set args $flagArray
- while {[llength $args] && [catch {eval configure $args} msg]} {
+ while {[llength $args]>1 && [catch {eval configure $args} msg]} {
# Something went wrong parsing $args for tcltest options
# Check whether the problem is "unknown option"
@@ -1450,6 +1450,11 @@ proc tcltest::ProcessFlags {flagArray} {
}
set args [lrange $args 2 end]
}
+ if {[llength $args] == 1} {
+ puts [errorChannel] \
+ "missing value for option [lindex $args 0]"
+ exit 1
+ }
}
# Call the hook