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 | 6f9ac81ae93ac06536907bb0155de6d4cf24285b (patch) | |
tree | 6e8a2ea347e991687484927a565d7b911e59d7e5 /tests/io.test | |
parent | b2e1bb03b175a89de9932b2cab305e60fedee0e0 (diff) | |
download | tcl-6f9ac81ae93ac06536907bb0155de6d4cf24285b.zip tcl-6f9ac81ae93ac06536907bb0155de6d4cf24285b.tar.gz tcl-6f9ac81ae93ac06536907bb0155de6d4cf24285b.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 |