Commit d4edae32 for xz
commit d4edae32b6f1d34d68f3ac8917c20d0191e0cfcd
Author: Lasse Collin <lasse.collin@tukaani.org>
Date: Mon Jul 20 22:29:58 2026 +0300
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);