summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-04-29 07:23:07 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-04-29 07:23:07 (GMT)
commit42e171af9f7d955cce861026cfccd61e950256e3 (patch)
tree1260f679767f5188f8a2b40b8f1f2953f8cd0417 /tests
parent6dc349d4991d4514c4419c39e9918cf4c7998cfd (diff)
parent4afd3525b5e7ea01272b07281dd65833bdb885d7 (diff)
downloadtcl-42e171af9f7d955cce861026cfccd61e950256e3.zip
tcl-42e171af9f7d955cce861026cfccd61e950256e3.tar.gz
tcl-42e171af9f7d955cce861026cfccd61e950256e3.tar.bz2
merge trunk
Diffstat (limited to 'tests')
-rw-r--r--tests/io.test21
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/io.test b/tests/io.test
index 53b85fa..74a246c 100644
--- a/tests/io.test
+++ b/tests/io.test
@@ -2736,6 +2736,25 @@ test io-29.33 {Tcl_Flush, implicit flush on exit} {exec} {
close $f
set r
} "hello\nbye\nstrange\n"
+set path(script2) [makeFile {} script2]
+test io-29.33b {TIP#398, no implicit flush of nonblocking on exit} {exec} {
+ set f [open $path(script) w]
+ puts $f {
+ fconfigure stdout -blocking 0
+ puts -nonewline stdout [string repeat A 655360]
+ flush stdout
+ }
+ close $f
+ set f [open $path(script2) w]
+ puts $f {after 2000}
+ close $f
+ set t1 [clock seconds]
+ set ff [open "|[list [interpreter] $path(script2)]" w]
+ exec [interpreter] $path(script) >@ $ff
+ set t2 [clock seconds]
+ close $ff
+ expr {($t2-$t1)/2}
+} 0
test io-29.34 {Tcl_Close, async flush on close, using sockets} {socket tempNotMac fileevent} {
variable c 0
variable x running
@@ -7761,7 +7780,7 @@ test io-73.2 {channel Tcl_Obj SetChannelFromAny, bug 2407783} -setup {
# ### ### ### ######### ######### #########
# cleanup
-foreach file [list fooBar longfile script output test1 pipe my_script \
+foreach file [list fooBar longfile script script2 output test1 pipe my_script \
test2 test3 cat stdout kyrillic.txt utf8-fcopy.txt utf8-rp.txt] {
removeFile $file
}