From: Lasse Collin Date: Mon, 20 Jul 2026 19:29:58 +0000 (+0300) Subject: Tests: Fix test_index.c when encoding support is disabled X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4edae32b6f1d34d68f3ac8917c20d0191e0cfcd;p=thirdparty%2Fxz.git Tests: Fix test_index.c when encoding support is disabled Fixes: 10dfae83fd3b ("Tests: test_index: Add a test for the Index decoder memusage bug") --- diff --git a/tests/test_index.c b/tests/test_index.c index 6b7f7175..f4ac4b4c 100644 --- a/tests/test_index.c +++ b/tests/test_index.c @@ -1625,8 +1625,8 @@ test_lzma_index_decoder(void) static void test_lzma_index_decoder_memusage(void) { -#ifndef HAVE_DECODERS - assert_skip("Decoder support disabled"); +#if !defined(HAVE_ENCODERS) || !defined(HAVE_DECODERS) + assert_skip("Encoder or decoder support disabled"); #else assert_uint(decode_buffer_size, >, 20);