diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2016-09-06 10:44:45 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2016-09-06 10:44:45 (GMT) |
commit | 907e3ead5a3a2615c5721af947895bb4cacd3c99 (patch) | |
tree | 91b39e6c025857fcdea3676caaf2dccf2f1cf438 /tests | |
parent | 8dac135fc9c8efae2cc3113bc975ab871ff2271f (diff) | |
download | tcl-907e3ead5a3a2615c5721af947895bb4cacd3c99.zip tcl-907e3ead5a3a2615c5721af947895bb4cacd3c99.tar.gz tcl-907e3ead5a3a2615c5721af947895bb4cacd3c99.tar.bz2 |
Fixed bug in pushed transforms with full internal buffers not writing out.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/zlib.test | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/zlib.test b/tests/zlib.test index 8a040d8..15dbb34 100644 --- a/tests/zlib.test +++ b/tests/zlib.test @@ -917,6 +917,29 @@ test zlib-12.1 {Tk Bug 9eb55debc5} -constraints zlib -setup { } -cleanup { $stream close } -result {12026 18000} +test zlib-12.2 {Patrick Dunnigan's issue} -constraints zlib -setup { + set filesrc [makeFile {} test.input] + set filedst [makeFile {} test.output] + set f [open $filesrc "wb"] + for {set i 0} {$i < 10000} {incr i} { + puts -nonewline $f "x" + } + close $f +} -body { + set fin [open $filesrc "rb"] + set fout [open $filedst "wb"] + set header [dict create filename "test.input" time 0] + try { + fcopy $fin [zlib push gzip $fout -header $header] + } finally { + close $fin + close $fout + } + file size $filedst +} -cleanup { + removeFile $filesrc + removeFile $filedst +} -result 4152 ::tcltest::cleanupTests return |