summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2002-03-23 01:39:56 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2002-03-23 01:39:56 (GMT)
commit6b2f093c42f3559f40f1c82297d09f5388d596f6 (patch)
tree17c3432f68e21fe0054e655744d2e8219c76d96f
parentc5a3a1e1f04c0b2f54b1f51d18ef81db23bfd4cf (diff)
downloadtcl-6b2f093c42f3559f40f1c82297d09f5388d596f6.zip
tcl-6b2f093c42f3559f40f1c82297d09f5388d596f6.tar.gz
tcl-6b2f093c42f3559f40f1c82297d09f5388d596f6.tar.bz2
adding test for [Bug 533758], fixed earlier today.
-rw-r--r--ChangeLog5
-rw-r--r--tests/basic.test28
2 files changed, 30 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index d3fe00c..89b89b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-03-22 Miguel Sofer <msofer@users.sourceforge.net>
+
+ * tests/basic.test (basic-46.1): adding test for [Bug 533758],
+ fixed earlier today.
+
2002-03-22 Jeff Hobbs <jeffh@ActiveState.com>
* win/tclWinInt.h: moved undef of TCL_STORAGE_CLASS. [Bug #478579]
diff --git a/tests/basic.test b/tests/basic.test
index 70472a8..4aee121 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.15 2002/02/10 20:36:34 kennykb Exp $
+# RCS: @(#) $Id: basic.test,v 1.16 2002/03/23 01:39:57 msofer Exp $
#
if {[lsearch [namespace children] ::tcltest] == -1} {
@@ -558,8 +558,30 @@ test basic-44.1 {Tcl_GlobalEval} {emptyTest} {
test basic-45.1 {Tcl_SetRecursionLimit: see interp.test} {emptyTest} {
} {}
-test basic-46.1 {Tcl_AllowExceptions} {emptyTest} {
-} {}
+test basic-46.1 {Tcl_AllowExceptions: exception return not allowed} {
+ catch {close $f}
+ set res [catch {
+ set f [open |[info nameofexecutable] w+]
+ fconfigure $f -buffering line
+ puts $f {fconfigure stdout -buffering line}
+ puts $f continue
+ puts $f {puts $errorInfo}
+ puts $f {puts DONE}
+ set newMsg {}
+ set msg {}
+ while {$newMsg != "DONE"} {
+ set newMsg [gets $f]
+ append msg "${newMsg}\n"
+ }
+ close $f
+ }]
+ list $res $msg
+} {1 {invoked "continue" outside of a loop
+ while executing
+"continue
+"
+DONE
+}}
# cleanup
catch {eval namespace delete [namespace children :: test_ns_*]}