summaryrefslogtreecommitdiffstats
path: root/tests/parse.test
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2003-04-01 07:18:35 (GMT)
committerdgp <dgp@noemail.net>2003-04-01 07:18:35 (GMT)
commit5fcc0022bc751606bd350315bcc2b59cbbdb6969 (patch)
tree200a744d8b14d9c1dbfb740cab50bf0d49f40a9e /tests/parse.test
parent1d07ec64c90f44e3472bd76da99ce6523e231b2e (diff)
downloadtcl-5fcc0022bc751606bd350315bcc2b59cbbdb6969.zip
tcl-5fcc0022bc751606bd350315bcc2b59cbbdb6969.tar.gz
tcl-5fcc0022bc751606bd350315bcc2b59cbbdb6969.tar.bz2
* generic/tclExecute.c (INST_RETURN): Bytecompiled [return] failed
to reset iPtr->returnCode, causing tests parse-18.17 and parse-18.21 to fail strangely. * tests/parse.test (parse-18.21): Corrected now functioning test. FossilOrigin-Name: 3b44f60bef0d3d886865ffc200e9b2eeeb1bea83
Diffstat (limited to 'tests/parse.test')
-rw-r--r--tests/parse.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/parse.test b/tests/parse.test
index 69462b2..daecce5 100644
--- a/tests/parse.test
+++ b/tests/parse.test
@@ -8,7 +8,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: parse.test,v 1.13 2003/03/31 23:19:48 dgp Exp $
+# RCS: @(#) $Id: parse.test,v 1.14 2003/04/01 07:18:37 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -808,7 +808,9 @@ test parse-18.20 {Tcl_SubstObj, exception handling} {
list [catch {subst {abc,[return foo; expr 1+2; set {} {}{}],def}} msg] $msg
} [list 1 "extra characters after close-brace"]
test parse-18.21 {Tcl_SubstObj, exception handling} {
- subst {abc,[return -code 10 foo; expr 1+2; set {} {}{}],def}
+ list [catch {
+ subst {abc,[return -code 10 foo; expr 1+2; set {} {}{}],def}
+ } msg] $msg
} [list 1 "extra characters after close-brace"]
# cleanup