1
0
mirror of https://git.tukaani.org/xz.git synced 2026-10-31 03:14:56 +00:00

Tests: Fix test_index.c when encoding support is disabled

Fixes: 10dfae83fd3b ("Tests: test_index: Add a test for the Index decoder memusage bug")
This commit is contained in:
Lasse Collin 2026-07-20 22:29:58 +03:00
parent 0352dc7929
commit d4edae32b6
No known key found for this signature in database
GPG Key ID: 38EE757D69184620

View File

@ -1625,8 +1625,8 @@ test_lzma_index_decoder(void)
static void static void
test_lzma_index_decoder_memusage(void) test_lzma_index_decoder_memusage(void)
{ {
#ifndef HAVE_DECODERS #if !defined(HAVE_ENCODERS) || !defined(HAVE_DECODERS)
assert_skip("Decoder support disabled"); assert_skip("Encoder or decoder support disabled");
#else #else
assert_uint(decode_buffer_size, >, 20); assert_uint(decode_buffer_size, >, 20);