summaryrefslogtreecommitdiffstats
path: root/tests/io.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-05-25 18:14:33 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-05-25 18:14:33 (GMT)
commitec2312f54a9b7174ec63edea2d8966183bbe1b76 (patch)
treed65c18892ae04eac152ccab3d2b5fbc52a25a746 /tests/io.test
parentf31f039f04c16af8a56d07f7a076b5ca1c67ecb0 (diff)
downloadtcl-ec2312f54a9b7174ec63edea2d8966183bbe1b76.zip
tcl-ec2312f54a9b7174ec63edea2d8966183bbe1b76.tar.gz
tcl-ec2312f54a9b7174ec63edea2d8966183bbe1b76.tar.bz2
io-61.1: initialize res
Diffstat (limited to 'tests/io.test')
-rw-r--r--tests/io.test3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/io.test b/tests/io.test
index 2f97129..b8af0f3 100644
--- a/tests/io.test
+++ b/tests/io.test
@@ -12,7 +12,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: io.test,v 1.52 2004/05/25 18:06:26 dgp Exp $
+# RCS: @(#) $Id: io.test,v 1.53 2004/05/25 18:14:33 dgp Exp $
if {[catch {package require tcltest 2}]} {
puts stderr "Skipping tests in [info script]. tcltest 2 required."
@@ -7103,6 +7103,7 @@ set datafile [file join $::tcltest::testsDirectory eofchar.data]
test io-61.1 {Reset eof state after changing the eof char} {
set f [open $datafile r]
fconfigure $f -eofchar =
+ set res {}
lappend res [read $f; tell $f]
fconfigure $f -eofchar {}
lappend res [read $f 1]