Package: guile-zlib Version: 0.2.1-1 Severity: important Tags: sid patch control: affects -1 src:zlib-ng User: [email protected] Usertags: zlib-ng-ftbfs
The "gzip output port, error" test writes 65536 of likely uncompressible bytes and expects that the zlib library writes it immediately to the fd. This happens with zlib but does not happen with zlib-ng as it caches this amount and does not write (yet). The test fails as the error is not observed. Once the fd is "dropped" the fd is closed by the garbage collector and the error is thrown but not caught by the test. This is my understanding and I just learned that guile exists. The patch attached increases the number of written bytes so that zlib-ng als writes immediately to the fd and throws the error. Sebastian
From: Sebastian Andrzej Siewior <[email protected]> Date: Sat, 7 Dec 2024 17:15:26 +0100 Subject: [PATCH] test: Increase write size for write test. The "gzip output port, error" test writes 65536 of likely uncompressible bytes and expects that the zlib library writes it immediately to the fd. This happens with zlib but does not happen with zlib-ng as it caches this amount and does not write (yet). The test fails as the error is not observed. Once the fd is "dropped" the fd is closed by the garbage collector and the error is thrown but not caught by the test. This is my understanding and I just learned that guile exists. Increase the number of written bytes so that zlib-ng als writes immediately to the fd and throws the error. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> --- tests/zlib.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/zlib.scm b/tests/zlib.scm index b33bc9dbd288..ec7b0fe9fc13 100644 --- a/tests/zlib.scm +++ b/tests/zlib.scm @@ -57,7 +57,7 @@ (call-with-output-file "/dev/full" (lambda (p) (let ((p (make-gzip-output-port p))) - (put-bytevector p (random-bytevector 65536)) + (put-bytevector p (random-bytevector 262140)) (force-output p) (close-port p)))) #f)

