Commit 7d38ad9f for xz

commit 7d38ad9fa7f5264f639d5ed98ec2845d8cf319da
Author: Lasse Collin <lasse.collin@tukaani.org>
Date:   Mon Nov 30 18:17:12 2026 +0200

    Tests: test_raw: Fix the build when features are disabled

    Fixes: 8d19cef966fc ("Tests: Add a test for the preset dictionary sanitizer issue")

diff --git a/tests/test_raw.c b/tests/test_raw.c
index a2ca73fa..34f4fa58 100644
--- a/tests/test_raw.c
+++ b/tests/test_raw.c
@@ -28,6 +28,9 @@ static uint8_t decoded[16];
 static void
 test_preset_dict(void)
 {
+#if !defined(HAVE_ENCODERS) || !defined(HAVE_DECODERS)
+	assert_skip("Encoder or decoder support disabled");
+#else
 	lzma_options_lzma opt_lzma2;
 	assert_false(lzma_lzma_preset(&opt_lzma2, 4));

@@ -66,6 +69,7 @@ test_preset_dict(void)
 	assert_lzma_ret(lzma_raw_buffer_decode(filters, NULL,
 			encoded, &in_pos, enc_size,
 			decoded, &dec_size, sizeof(decoded)), LZMA_DATA_ERROR);
+#endif
 }