From d4edae32b6f1d34d68f3ac8917c20d0191e0cfcd Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Mon, 20 Jul 2026 22:29:58 +0300 Subject: [PATCH] Tests: Fix test_index.c when encoding support is disabled Fixes: 10dfae83fd3b ("Tests: test_index: Add a test for the Index decoder memusage bug") --- tests/test_index.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);