summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-10-26 21:42:33 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-10-26 21:42:33 (GMT)
commita50314f88b2a6af554553927c9c0e590c0acf7dc (patch)
tree2d61b6619626e5c343bf53ab40ba21a8c2f15516
parent1c85487022832a22790e5b4a739bbb64abb85076 (diff)
downloadtcl-a50314f88b2a6af554553927c9c0e590c0acf7dc.zip
tcl-a50314f88b2a6af554553927c9c0e590c0acf7dc.tar.gz
tcl-a50314f88b2a6af554553927c9c0e590c0acf7dc.tar.bz2
* tests/subst.test (subst-12.3-5): More tests for Bug 1036649.
-rw-r--r--ChangeLog2
-rw-r--r--tests/subst.test10
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b3d52da..f9aaa1f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,6 @@
2004-10-26 Don Porter <dgp@users.sourceforge.net>
- * tests/subst.test (subst-12.3,4): More tests for Bug 1036649.
+ * tests/subst.test (subst-12.3-5): 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.
diff --git a/tests/subst.test b/tests/subst.test
index 30a9ad2..09e4de2 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.6 2004/10/26 21:03:28 dgp Exp $
+# RCS: @(#) $Id: subst.test,v 1.13.2.7 2004/10/26 21:42:53 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -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