summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2016-09-06 10:44:45 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2016-09-06 10:44:45 (GMT)
commit907e3ead5a3a2615c5721af947895bb4cacd3c99 (patch)
tree91b39e6c025857fcdea3676caaf2dccf2f1cf438 /tests
parent8dac135fc9c8efae2cc3113bc975ab871ff2271f (diff)
downloadtcl-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.test23
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