summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2004-10-30 03:16:11 (GMT)
committerdgp <dgp@noemail.net>2004-10-30 03:16:11 (GMT)
commit2666626732ed90e4ff6e73652573bbc435138193 (patch)
treec2e0c31280e60432f2e3ab075b6ec9ba99644bc3 /library
parentb821f56b1a57a1f1833d6ce92f2c0b6aa4492939 (diff)
downloadtcl-2666626732ed90e4ff6e73652573bbc435138193.zip
tcl-2666626732ed90e4ff6e73652573bbc435138193.tar.gz
tcl-2666626732ed90e4ff6e73652573bbc435138193.tar.bz2
* library/tcltest/tcltest.tcl: Correct reaction to errors in the
obsolete processCmdLineArgsHook. [Bug 1055673] * library/tcltest/pkgIndex.tcl: Bump to tcltest 2.2.7 FossilOrigin-Name: 87b922f78a5d88d25da52d1ba2c2ceb1fb78ba0b
Diffstat (limited to 'library')
-rw-r--r--library/tcltest/pkgIndex.tcl2
-rw-r--r--library/tcltest/tcltest.tcl10
2 files changed, 7 insertions, 5 deletions
diff --git a/library/tcltest/pkgIndex.tcl b/library/tcltest/pkgIndex.tcl
index 6e0766e..fe594b6 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.6 [list source [file join $dir tcltest.tcl]]
+package ifneeded tcltest 2.2.7 [list source [file join $dir tcltest.tcl]]
diff --git a/library/tcltest/tcltest.tcl b/library/tcltest/tcltest.tcl
index 85d86db..9398ea4 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.78.2.10 2004/05/26 16:24:37 dgp Exp $
+# RCS: @(#) $Id: tcltest.tcl,v 1.78.2.11 2004/10/30 03:16:14 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.6
+ variable Version 2.2.7
# Compatibility support for dumb variables defined in tcltest 1
# Do not use these. Call [package provide Tcl] and [info patchlevel]
@@ -1458,8 +1458,10 @@ proc tcltest::ProcessFlags {flagArray} {
}
# Call the hook
- array set flag $flagArray
- processCmdLineArgsHook [array get flag]
+ catch {
+ array set flag $flagArray
+ processCmdLineArgsHook [array get flag]
+ }
return
}