]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Tests: Fix test_index.c when encoding support is disabled
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 20 Jul 2026 19:29:58 +0000 (22:29 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 20 Jul 2026 19:34:32 +0000 (22:34 +0300)
Fixes: 10dfae83fd3b ("Tests: test_index: Add a test for the Index decoder memusage bug")
tests/test_index.c

index 6b7f7175a4f18bce6e0cd2affb28f95d5761a557..f4ac4b4cf3ff7252658389849320d46a684d35ea 100644 (file)
@@ -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);