]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/journal/test-journal.c
tree-wide: add new HAVE_COMPRESSION compile time flag
[thirdparty/systemd.git] / src / journal / test-journal.c
index c5596649ab50197798e369c4aabc96f86f12d98d..5850bb8eaa347b4a459df798f6214c5b4fe9294b 100644 (file)
@@ -157,7 +157,7 @@ static void test_empty(void) {
         (void) journal_file_close(f4);
 }
 
-#if HAVE_XZ || HAVE_LZ4 || HAVE_ZSTD
+#if HAVE_COMPRESSION
 static bool check_compressed(uint64_t compress_threshold, uint64_t data_size) {
         dual_timestamp ts;
         JournalFile *f;
@@ -251,7 +251,7 @@ int main(int argc, char *argv[]) {
 
         test_non_empty();
         test_empty();
-#if HAVE_XZ || HAVE_LZ4 || HAVE_ZSTD
+#if HAVE_COMPRESSION
         test_min_compress_size();
 #endif