summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-04-04 16:02:17 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-04-04 16:02:17 (GMT)
commite9abd4931802a8067045b1a2adc75356173cb747 (patch)
tree0e44d545c109756b846961a538626470a97e0eac /tests
parentd1bde869dce8d1d410b5aabddeace13133d135fb (diff)
parent1fa8d8f8ed23d263b17cb2315eaf7de803690ee4 (diff)
downloadtcl-e9abd4931802a8067045b1a2adc75356173cb747.zip
tcl-e9abd4931802a8067045b1a2adc75356173cb747.tar.gz
tcl-e9abd4931802a8067045b1a2adc75356173cb747.tar.bz2
merge 8.6
Diffstat (limited to 'tests')
-rw-r--r--tests/zlib.test18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/zlib.test b/tests/zlib.test
index 7a486ba..968469d 100644
--- a/tests/zlib.test
+++ b/tests/zlib.test
@@ -875,6 +875,24 @@ test zlib-11.3 {Bug 3595576 variant} -setup {
} -cleanup {
removeFile $file
} -returnCodes error -result {can't set "noSuchNs::foo": parent namespace doesn't exist}
+
+test zlib-12.1 {Tk Bug 9eb55debc5} -constraints zlib -setup {
+ set stream [zlib stream compress]
+} -body {
+ for {set opts {};set y 0} {$y < 60} {incr y} {
+ for {set line {};set x 0} {$x < 100} {incr x} {
+ append line [binary format ccc $x $y 128]
+ }
+ if {$y == 59} {
+ set opts -finalize
+ }
+ $stream put {*}$opts $line
+ }
+ set data [$stream get]
+ list [string length $data] [string length [zlib decompress $data]]
+} -cleanup {
+ $stream close
+} -result {12026 18000}
::tcltest::cleanupTests
return