diff options
author | dgp <dgp@users.sourceforge.net> | 2004-10-26 20:55:47 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2004-10-26 20:55:47 (GMT) |
commit | abfb62890bdbed9bc73a1bd0719c76893f16addc (patch) | |
tree | 673b7233d4948ec741a3a7b66c4e9eb7c7c0d24a | |
parent | bfb859bec9d8239483dde0d2bd088364086f86ef (diff) | |
download | tcl-abfb62890bdbed9bc73a1bd0719c76893f16addc.zip tcl-abfb62890bdbed9bc73a1bd0719c76893f16addc.tar.gz tcl-abfb62890bdbed9bc73a1bd0719c76893f16addc.tar.bz2 |
* tests/subst.test (subst-12.3,4): More tests for Bug 1036649.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tests/subst.test | 18 |
2 files changed, 21 insertions, 2 deletions
@@ -14,8 +14,11 @@ 2004-10-26 Don Porter <dgp@users.sourceforge.net> + * tests/subst.test (subst-12.3,4): More tests for Bug 1036649. + * unix/Makefile.in (install-libraries): Updated the installation - of the http, msgcat, and tcltest packages to install as Tcl Modules. + of the http, msgcat, and tcltest packages to install as Tcl Modules + on Unix systems. Other platform Makefiles still need updating. [Patch 1054370] * tests/basic.test: Added missing constraints. diff --git a/tests/subst.test b/tests/subst.test index 16de9c4..59632e4 100644 --- a/tests/subst.test +++ b/tests/subst.test @@ -11,7 +11,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: subst.test,v 1.15 2004/09/30 10:41:07 msofer Exp $ +# RCS: @(#) $Id: subst.test,v 1.16 2004/10/26 20:55:51 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2.1 @@ -234,6 +234,22 @@ test subst-12.2 {nasty case, Bug 1036649} { } set res } {1 {missing close-bracket}} +test subst-12.3 {nasty case, Bug 1036649} { + set x 0 + for {set i 0} {$i < 10} {incr i} { + set res [list [catch {subst "\[incr x;"} msg] $msg] + if {$msg ne "missing close-bracket"} break + } + list $res $x +} {{1 {missing close-bracket}} 0} +test subst-12.4 {nasty case, Bug 1036649} { + set x 0 + for {set i 0} {$i < 10} {incr i} { + set res [list [catch {subst "\[incr x; "} msg] $msg] + if {$msg ne "missing close-bracket"} break + } + list $res $x +} {{1 {missing close-bracket}} 10} # cleanup ::tcltest::cleanupTests |