diff options
Diffstat (limited to 'tests/test_microlzma.c')
-rw-r--r-- | tests/test_microlzma.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/test_microlzma.c b/tests/test_microlzma.c index 43594a0a..f939e397 100644 --- a/tests/test_microlzma.c +++ b/tests/test_microlzma.c @@ -11,8 +11,6 @@ #include "tests.h" -#ifdef HAVE_MICROLZMA - #define BUFFER_SIZE 1024 #ifdef HAVE_ENCODER_LZMA1 @@ -513,7 +511,6 @@ test_decode_bad_lzma_properties(void) lzma_end(&strm); } #endif -#endif extern int @@ -521,17 +518,16 @@ main(int argc, char **argv) { tuktest_start(argc, argv); -#ifndef HAVE_MICROLZMA - tuktest_early_skip("MicroLZMA disabled"); +#ifndef HAVE_ENCODER_LZMA1 + tuktest_early_skip("LZMA1 encoder disabled"); #else -# ifdef HAVE_ENCODER_LZMA1 tuktest_run(test_encode_options); tuktest_run(test_encode_basic); tuktest_run(test_encode_small_out); tuktest_run(test_encode_actions); -# endif -# if defined(HAVE_DECODER_LZMA1) && defined(HAVE_ENCODER_LZMA1) + // MicroLZMA decoder tests require the basic encoder functionality. +# ifdef HAVE_DECODER_LZMA1 goodbye_world_encoded_size = basic_microlzma_encode(goodbye_world, ARRAY_SIZE(goodbye_world), &goodbye_world_encoded); |