diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-04-15 10:07:22 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-04-15 10:07:22 (GMT) |
commit | b54406ffc1f268bdb88f9512f500f04e0bc0be2f (patch) | |
tree | 19f183ade4dcf0f11ce15400234c0bf75f9c4a48 /tests | |
parent | 93e3a238d03fe4237ec76d361f83547cf268ab29 (diff) | |
download | tcl-b54406ffc1f268bdb88f9512f500f04e0bc0be2f.zip tcl-b54406ffc1f268bdb88f9512f500f04e0bc0be2f.tar.gz tcl-b54406ffc1f268bdb88f9512f500f04e0bc0be2f.tar.bz2 |
* generic/tclZlib.c (ZlibTransformSetOption): [Bug 3517696]: Make
flushing work correctly in a pushed compressing channel transform.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/zlib.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/zlib.test b/tests/zlib.test index 236e6b6..3aaca29 100644 --- a/tests/zlib.test +++ b/tests/zlib.test @@ -156,6 +156,18 @@ test zlib-8.3 {zlib transformation and fileevent} -constraints zlib -setup { close $srv removeFile $file } -result 81920-->81920 +test zlib-8.4 {transformation and flushing: Bug 3517696} -setup { + set file [makeFile {} test.z] + set fd [open $file w] +} -constraints zlib -body { + zlib push compress $fd + puts $fd "qwertyuiop" + fconfigure $fd -flush sync + puts $fd "qwertyuiop" +} -cleanup { + catch {close $fd} + removeFile $file +} -result {} test zlib-9.1 "check fcopy with push" -constraints zlib -setup { set sfile [makeFile {} testsrc.gz] |