diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-07-04 12:51:17 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-07-04 12:51:17 (GMT) |
commit | 8ebd51d17f83008f8d6e2360bfb4c29b23d64cb3 (patch) | |
tree | fd7648231d3d61a2d9f40d4d121f3d3cf8303e5d /tests | |
parent | 19fb52deac87b2d8982abd448bf24b3c7ee092dd (diff) | |
parent | e1b54e0e11cd78052dd30856d3678abb3226ca3a (diff) | |
download | tcl-8ebd51d17f83008f8d6e2360bfb4c29b23d64cb3.zip tcl-8ebd51d17f83008f8d6e2360bfb4c29b23d64cb3.tar.gz tcl-8ebd51d17f83008f8d6e2360bfb4c29b23d64cb3.tar.bz2 |
merge trunk
Diffstat (limited to 'tests')
-rw-r--r-- | tests/io.test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/io.test b/tests/io.test index cf38a1b..c3aaa86 100644 --- a/tests/io.test +++ b/tests/io.test @@ -4945,6 +4945,26 @@ test io-36.1 {Tcl_InputBlocked on nonblocking pipe} {stdio openpipe} { close $f1 set x } {{} 1 hello 0 {} 1} +test io-36.1.1 {Tcl_InputBlocked on nonblocking binary pipe} {stdio openpipe} { + set f1 [open "|[list [interpreter]]" r+] + chan configure $f1 -encoding binary -translation lf -eofchar {} + puts $f1 {puts hello_from_pipe} + flush $f1 + gets $f1 + fconfigure $f1 -blocking off -buffering full + puts $f1 {puts hello} + set x "" + lappend x [gets $f1] + lappend x [fblocked $f1] + flush $f1 + after 200 + lappend x [gets $f1] + lappend x [fblocked $f1] + lappend x [gets $f1] + lappend x [fblocked $f1] + close $f1 + set x +} {{} 1 hello 0 {} 1} test io-36.2 {Tcl_InputBlocked on blocking pipe} {stdio openpipe} { set f1 [open "|[list [interpreter]]" r+] fconfigure $f1 -buffering line |