diff options
author | dgp <dgp@users.sourceforge.net> | 2004-10-26 20:54:35 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2004-10-26 20:54:35 (GMT) |
commit | 0b182ee958655b441c2ffc969c501360ff367201 (patch) | |
tree | bf409867d5d660f153aae6754d781157fca686cd | |
parent | 02d8d08520b48fae236b2c0073b0d3e4fcc61845 (diff) | |
download | tcl-0b182ee958655b441c2ffc969c501360ff367201.zip tcl-0b182ee958655b441c2ffc969c501360ff367201.tar.gz tcl-0b182ee958655b441c2ffc969c501360ff367201.tar.bz2 |
* tests/subst.test (subst-12.3,4): More tests for Bug 1036649.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | tests/subst.test | 20 |
2 files changed, 19 insertions, 3 deletions
@@ -1,5 +1,7 @@ 2004-10-26 Don Porter <dgp@users.sourceforge.net> + * tests/subst.test (subst-12.3,4): More tests for Bug 1036649. + * tests/compile.test (compile-12.4): Backport test for Bug 1001997. * tests/timer.test (timer-10.1): Backport test for Bug 1016167. * tests/tcltest.test (tcltest-12.3,4): Backport setup corrections. diff --git a/tests/subst.test b/tests/subst.test index 8ba5ec9..c6d9344 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.13.2.4 2004/09/30 10:35:07 msofer Exp $ +# RCS: @(#) $Id: subst.test,v 1.13.2.5 2004/10/26 20:54:52 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -234,8 +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 |