test-compress: add test for short decompress_startswith calls
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 29 Oct 2018 21:21:28 +0000 (22:21 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 30 Oct 2018 08:28:51 +0000 (09:28 +0100)
commitba17efce44e6a1e139c1671205e9a6ed3824af1b
treec5d44b8475ef97396bc95973bbba5eb5e16246a5
parente0a1d4b049e6991919a0eacd5d96f7f39dc6ddd1
test-compress: add test for short decompress_startswith calls

I thought this might fail with lz4 < 1.8.3, but it seems that because of
greedy_realloc, we always use a buffer that is large enough, and it always
passes.
src/journal/test-compress.c