summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-10-26 21:52:35 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-10-26 21:52:35 (GMT)
commitdfe0bb63c25ec4b9669b67071a6540448d5a7379 (patch)
treeb8201d1d753589344d27d43995ec5c2c2faef541 /tests
parent4b0ab277dc80defb3a47ad88bec8581e913881fc (diff)
downloadtcl-dfe0bb63c25ec4b9669b67071a6540448d5a7379.zip
tcl-dfe0bb63c25ec4b9669b67071a6540448d5a7379.tar.gz
tcl-dfe0bb63c25ec4b9669b67071a6540448d5a7379.tar.bz2
* generic/tclParse.c (Tcl_SubstObj): Fix for failed subst-12.3 test.
* tests/subst.test (subst-12.3-5): More tests for Bug 1036649.
Diffstat (limited to 'tests')
-rw-r--r--tests/subst.test10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/subst.test b/tests/subst.test
index ad788e2..a336c1b 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.17 2004/10/26 21:04:37 dgp Exp $
+# RCS: @(#) $Id: subst.test,v 1.18 2004/10/26 21:52:41 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -250,6 +250,14 @@ test subst-12.4 {nasty case, Bug 1036649} {
}
list $res $x
} {{1 {missing close-bracket}} 10}
+test subst-12.5 {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}
# cleanup
::tcltest::cleanupTests