diff options
author | sebres <sebres@users.sourceforge.net> | 2017-03-06 20:10:42 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2017-03-06 20:10:42 (GMT) |
commit | ae0c48521551ffe6af28967e0c3b848836fb632e (patch) | |
tree | 2d31ad45057b33fefe5c2c8fe11d2752fac876b8 /tests/zlib.test | |
parent | 08192ab42f794f6a486fdc21a537cce794f04472 (diff) | |
parent | 72972a21efecd282225c91662d7f83037434f63e (diff) | |
download | tcl-ae0c48521551ffe6af28967e0c3b848836fb632e.zip tcl-ae0c48521551ffe6af28967e0c3b848836fb632e.tar.gz tcl-ae0c48521551ffe6af28967e0c3b848836fb632e.tar.bz2 |
merge core-8-6-branch
Diffstat (limited to 'tests/zlib.test')
-rw-r--r-- | tests/zlib.test | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/zlib.test b/tests/zlib.test index 1e69745..63bac7e 100644 --- a/tests/zlib.test +++ b/tests/zlib.test @@ -311,7 +311,7 @@ test zlib-8.8 {transformation and fconfigure} -setup { lassign [chan pipe] inSide outSide } -constraints zlib -body { zlib push compress $outSide -dictionary $spdyDict - fconfigure $outSide -blocking 0 -translation binary -buffering none + fconfigure $outSide -blocking 1 -translation binary -buffering none fconfigure $inSide -blocking 1 -translation binary puts -nonewline $outSide $spdyHeaders chan pop $outSide @@ -508,6 +508,7 @@ test zlib-9.2 "socket fcopy with push" -constraints zlib -setup { chan configure $c -translation binary -buffering none -blocking 0 puts -nonewline $c [zlib gzip [string repeat a 81920]] close $c + set ::total -1 }}} 0] set file [makeFile {} test.gz] } -body { @@ -515,7 +516,10 @@ test zlib-9.2 "socket fcopy with push" -constraints zlib -setup { set sin [socket $addr $port] chan configure $sin -translation binary zlib push gunzip $sin - update + after 1000 {set ::total timeout} + vwait ::total + after cancel {set ::total timeout} + if {$::total != -1} {error "unexpected value $::total of ::total"} set total [fcopy $sin [set fout [open $file wb]]] close $sin close $fout |