]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Replace small/large buffer tests with parameterized test_chunked develop
authorNathan Moinvaziri <nathan@nathanm.com>
Tue, 14 Apr 2026 03:20:26 +0000 (20:20 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sat, 25 Apr 2026 14:25:57 +0000 (16:25 +0200)
commit4017a10ad1a90264cf8457125afbf3f236a6ec84
tree9d4c592a8197cea00549fb3da89487eda2fdcfd6
parent894a8ced1b09ff22ea0b8826fcccfbb73834896f
Replace small/large buffer tests with parameterized test_chunked

test_large_buffers reset d_stream.next_out on every inflate iteration, so the
decompressed output was never compared against the source. test_chunked keeps
the input, compressed, and decompressed buffers separate and checks them with
memcmp.

New avail_out values (3, 64, 128, 256, 259) exercise inflate_fast()'s safe-mode
MATCH-state bailout around the 258-byte maximum match length.
test/CMakeLists.txt
test/test_chunked.cc [new file with mode: 0644]
test/test_large_buffers.cc [deleted file]
test/test_small_buffers.cc [deleted file]