diff options
author | dgp <dgp@users.sourceforge.net> | 2016-07-18 16:26:44 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-07-18 16:26:44 (GMT) |
commit | a127a9e4aa8b2a9a386cd7fe694bfef8f1cf5264 (patch) | |
tree | 6e8a2ea347e991687484927a565d7b911e59d7e5 /tests/io.test | |
parent | 8f0cfce66a4fd94536faac0595c3d7d7c7844d64 (diff) | |
download | tcl-a127a9e4aa8b2a9a386cd7fe694bfef8f1cf5264.zip tcl-a127a9e4aa8b2a9a386cd7fe694bfef8f1cf5264.tar.gz tcl-a127a9e4aa8b2a9a386cd7fe694bfef8f1cf5264.tar.bz2 |
[104f2885bb] Rework the "chan" Tcl_ObjType to properly validate cached
channel name lookups.
Diffstat (limited to 'tests/io.test')
-rw-r--r-- | tests/io.test | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/io.test b/tests/io.test index 50c5808..7275b42 100644 --- a/tests/io.test +++ b/tests/io.test @@ -38,6 +38,7 @@ testConstraint testfevent [llength [info commands testfevent]] testConstraint testchannelevent [llength [info commands testchannelevent]] testConstraint testmainthread [llength [info commands testmainthread]] testConstraint testthread [llength [info commands testthread]] +testConstraint testobj [llength [info commands testobj]] # You need a *very* special environment to do some tests. In # particular, many file systems do not support large-files... @@ -8522,6 +8523,24 @@ test io-73.5 {effect of eof on encoding end flags} -setup { removeFile io-73.5 } -result [list 1 1 more\u00a0data 1] +test io-74.1 {[104f2885bb] improper cache validity check} -setup { + set fn [makeFile {} io-74.1] + set rfd [open $fn r] + testobj freeallvars + interp create slave +} -constraints testobj -body { + teststringobj set 1 [string range $rfd 0 end] + read [teststringobj get 1] + testobj duplicate 1 2 + interp transfer {} $rfd slave + catch {read [teststringobj get 1]} + read [teststringobj get 2] +} -cleanup { + interp delete slave + testobj freeallvars + removeFile io-74.1 +} -returnCodes error -match glob -result {can not find channel named "*"} + # ### ### ### ######### ######### ######### # cleanup |