From: Tim Kientzle Date: Sun, 10 Jun 2012 01:01:59 +0000 (-0700) Subject: Lrzip doesn't have gradations of support. X-Git-Tag: v3.1.0~85 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e9a1fab190c2be9663f69a04d8e33d50d00cddbc;p=thirdparty%2Flibarchive.git Lrzip doesn't have gradations of support. --- diff --git a/libarchive/test/test_write_compress_lrzip.c b/libarchive/test/test_write_compress_lrzip.c index dc6f617db..c0ad7f542 100644 --- a/libarchive/test/test_write_compress_lrzip.c +++ b/libarchive/test/test_write_compress_lrzip.c @@ -87,23 +87,18 @@ DEFINE_TEST(test_write_compress_lrzip) assert((a = archive_read_new()) != NULL); assertEqualIntA(a, ARCHIVE_OK, archive_read_support_format_all(a)); - r = archive_read_support_filter_lrzip(a); - if (r == ARCHIVE_WARN) { - skipping("Can't verify lrzip writing by reading back;" - " lrzip reading not fully supported on this platform"); - } else { - assertEqualIntA(a, ARCHIVE_OK, - archive_read_open_memory(a, buff, used1)); - for (i = 0; i < 100; i++) { - sprintf(path, "file%03d", i); - if (!assertEqualInt(ARCHIVE_OK, - archive_read_next_header(a, &ae))) - break; - assertEqualString(path, archive_entry_pathname(ae)); - assertEqualInt((int)datasize, archive_entry_size(ae)); - } - assertEqualIntA(a, ARCHIVE_OK, archive_read_close(a)); + assertEqualIntA(a, ARCHIVE_OK, archive_read_support_filter_lrzip(a)); + assertEqualIntA(a, ARCHIVE_OK, + archive_read_open_memory(a, buff, used1)); + for (i = 0; i < 100; i++) { + sprintf(path, "file%03d", i); + if (!assertEqualInt(ARCHIVE_OK, + archive_read_next_header(a, &ae))) + break; + assertEqualString(path, archive_entry_pathname(ae)); + assertEqualInt((int)datasize, archive_entry_size(ae)); } + assertEqualIntA(a, ARCHIVE_OK, archive_read_close(a)); assertEqualInt(ARCHIVE_OK, archive_read_free(a)); /*