From: Andres Mejia Date: Sun, 24 Feb 2013 18:06:28 +0000 (-0500) Subject: Fix test_archive_write_add_filter_by_name_lrzip test case. X-Git-Tag: v3.1.900a~360^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d767d7904781794442938df6b0dd29c8da325e03;p=thirdparty%2Flibarchive.git Fix test_archive_write_add_filter_by_name_lrzip test case. There's some bug in lrzip where small files cannot use 2nd stage compression. See http://ck-hack.blogspot.com/2012/03/lrzip-0612.html?showComment=1337356929450#c3154145708572533571 --- diff --git a/libarchive/test/test_archive_write_add_filter_by_name.c b/libarchive/test/test_archive_write_add_filter_by_name.c index 68b3ce60b..a8cc8b339 100644 --- a/libarchive/test/test_archive_write_add_filter_by_name.c +++ b/libarchive/test/test_archive_write_add_filter_by_name.c @@ -70,6 +70,16 @@ test_filter_by_name(const char *filter_name, int filter_code, return; } } + if (filter_code == ARCHIVE_FILTER_LRZIP) + { + /* + * There's a bug in lrzip (as of release 0.612) where 2nd stage + * compression can't be performed on smaller files. Set lrzip to + * use no 2nd stage compression. + */ + assertEqualIntA(a, ARCHIVE_OK, + archive_write_set_options(a, "lrzip:compression=none")); + } assertEqualIntA(a, ARCHIVE_OK, archive_write_set_bytes_per_block(a, 10)); assertEqualIntA(a, ARCHIVE_OK, archive_write_open_memory(a, buff, buffsize, &used));