summaryrefslogtreecommitdiffstats
path: root/tests/io.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-03-10 19:29:54 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-03-10 19:29:54 (GMT)
commitf8cfd0ecd013de352e19827f8d9900978dccef11 (patch)
treeb168954f718b22794a060048a6657e4297bb8827 /tests/io.test
parentee4aa52d4251a185f8b4aeddef86dc8d098c6f81 (diff)
downloadtcl-f8cfd0ecd013de352e19827f8d9900978dccef11.zip
tcl-f8cfd0ecd013de352e19827f8d9900978dccef11.tar.gz
tcl-f8cfd0ecd013de352e19827f8d9900978dccef11.tar.bz2
Test for the bug I just committed.
Diffstat (limited to 'tests/io.test')
-rw-r--r--tests/io.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/io.test b/tests/io.test
index e3fff32..1bc3799 100644
--- a/tests/io.test
+++ b/tests/io.test
@@ -6872,6 +6872,20 @@ test io-52.14.1 {coverage of -translation crlf} {
close $out
file size $path(test2)
} 2
+test io-52.14.2 {coverage of -translation crlf} {
+ file delete $path(test1) $path(test2)
+ set out [open $path(test1) wb]
+ chan configure $out -translation lf
+ puts -nonewline $out abcdefg\rhijklmn\nopqrstu\r\nvwxyz
+ close $out
+ set in [open $path(test1)]
+ chan configure $in -translation crlf
+ set out [open $path(test2) w]
+ fcopy $in $out -size 9
+ close $in
+ close $out
+ file size $path(test2)
+} 9
test io-52.15 {coverage of -translation crlf} {
file delete $path(test1) $path(test2)
set out [open $path(test1) wb]