aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2022-10-23 21:01:08 +0800
committerLasse Collin <lasse.collin@tukaani.org>2022-10-26 20:12:01 +0300
commitce30ada91951d0746879ae438da11f1ee8a90aa0 (patch)
treece064892bd8db4a94ef68e0fa7997394c7c540d3 /tests
parentTests: Test also unsupported-*.xz. (diff)
downloadxz-ce30ada91951d0746879ae438da11f1ee8a90aa0.tar.xz
Tests: test_bcj_exact_size skips properly now if PowerPC filter disabled.
Diffstat (limited to '')
-rw-r--r--tests/test_bcj_exact_size.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_bcj_exact_size.c b/tests/test_bcj_exact_size.c
index 0115ca60..551166cb 100644
--- a/tests/test_bcj_exact_size.c
+++ b/tests/test_bcj_exact_size.c
@@ -90,6 +90,9 @@ test_empty_block(void)
#ifndef HAVE_DECODERS
assert_skip("Decoder support disabled");
#else
+ if (!lzma_filter_decoder_is_supported(LZMA_FILTER_POWERPC))
+ assert_skip("PowerPC BCJ decoder is disabled");
+
// An empty file with one Block using PowerPC BCJ and LZMA2.
size_t in_size;
uint8_t *empty_bcj_lzma2 = tuktest_file_from_srcdir(