diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basic.test | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/basic.test b/tests/basic.test index 4aee121..a459e07 100644 --- a/tests/basic.test +++ b/tests/basic.test @@ -15,7 +15,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: basic.test,v 1.16 2002/03/23 01:39:57 msofer Exp $ +# RCS: @(#) $Id: basic.test,v 1.17 2002/03/27 14:35:40 msofer Exp $ # if {[lsearch [namespace children] ::tcltest] == -1} { @@ -583,6 +583,20 @@ test basic-46.1 {Tcl_AllowExceptions: exception return not allowed} { DONE }} +test basic-46.2 {Tcl_AllowExceptions: exception return not allowed} { + makeFile { + puts hello + break + } BREAKtest + set res [list [catch {exec [info nameofexecutable] BREAKtest} msg] $msg] + removeFile BREAKtest + set res +} {1 {hello +invoked "break" outside of a loop + while executing +"break" + (file "BREAKtest" line 3)}} + # cleanup catch {eval namespace delete [namespace children :: test_ns_*]} catch {namespace delete george} |