Tcl Source Code

Artifact [b1e75287ae]
Login

Artifact b1e75287aee11e7e54c9c7b460bdd2d2b5d72034:

Attachment "basic.test.diff" to ticket [549607ffff] added by kennykb 2002-04-28 05:19:46.
Index: tests/basic.test
===================================================================
RCS file: /cvsroot/tcl/tcl/tests/basic.test,v
retrieving revision 1.19
diff -u -r1.19 basic.test
--- tests/basic.test	8 Apr 2002 09:02:00 -0000	1.19
+++ tests/basic.test	27 Apr 2002 22:15:13 -0000
@@ -563,7 +563,7 @@
 test basic-46.1 {Tcl_AllowExceptions: exception return not allowed} {exec} {
     catch {close $f}
     set res [catch {
-	set f [open |[info nameofexecutable] w+]
+	set f [open |[list [info nameofexecutable]] w+]
 	fconfigure $f -buffering line
 	puts $f {fconfigure stdout -buffering line}
 	puts $f continue
@@ -576,8 +576,8 @@
 	    append msg "${newMsg}\n"
 	}
 	close $f
-    }]
-    list $res $msg   
+    } error]
+    list $res $msg
 } {1 {invoked "continue" outside of a loop
     while executing
 "continue