]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix expected error messages in test_read_format_zip_winzip_aes*
authorMichał Górny <mgorny@gentoo.org>
Sat, 12 Feb 2022 10:11:22 +0000 (11:11 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 12 Feb 2022 10:11:22 +0000 (11:11 +0100)
Fix expected error messages when libarchive is compiled --without-zlib,
in order to fix test failures.

libarchive/test/test_read_format_zip_winzip_aes.c
libarchive/test/test_read_format_zip_winzip_aes_large.c

index cc1e3110d65b1f281d5c948485299c15c8e28594..3f543927a41e9e3312e4da2c995878a4124a18c6 100644 (file)
@@ -115,7 +115,7 @@ test_winzip_aes(const char *refname, int need_libz)
        } else {
                assertEqualInt(ARCHIVE_FAILED, archive_read_data(a, buff, 19));
                assertEqualString(archive_error_string(a),
-                   "Unsupported ZIP compression method (deflation)");
+                   "Unsupported ZIP compression method (8: deflation)");
                assert(archive_errno(a) != 0);
        }
        
index 6c40ae76695ab03519ca5e124cbaac6ebf91c8bb..f05e2183a21b5b09d3fb9a7b8c909b8f38b5f67d 100644 (file)
@@ -143,7 +143,7 @@ DEFINE_TEST(test_read_format_zip_winzip_aes256_large)
                assertEqualInt(ARCHIVE_FAILED,
                        archive_read_data(a, buff, sizeof(buff)));
                assertEqualString(archive_error_string(a),
-                   "Unsupported ZIP compression method (deflation)");
+                   "Unsupported ZIP compression method (8: deflation)");
                assert(archive_errno(a) != 0);
        }
 
@@ -161,7 +161,7 @@ DEFINE_TEST(test_read_format_zip_winzip_aes256_large)
                assertEqualInt(ARCHIVE_FAILED,
                        archive_read_data(a, buff, sizeof(buff)));
                assertEqualString(archive_error_string(a),
-                   "Unsupported ZIP compression method (deflation)");
+                   "Unsupported ZIP compression method (8: deflation)");
                assert(archive_errno(a) != 0);
        }
 
@@ -179,7 +179,7 @@ DEFINE_TEST(test_read_format_zip_winzip_aes256_large)
                assertEqualInt(ARCHIVE_FAILED,
                        archive_read_data(a, buff, sizeof(buff)));
                assertEqualString(archive_error_string(a),
-                   "Unsupported ZIP compression method (deflation)");
+                   "Unsupported ZIP compression method (8: deflation)");
                assert(archive_errno(a) != 0);
        }
 
@@ -197,7 +197,7 @@ DEFINE_TEST(test_read_format_zip_winzip_aes256_large)
                assertEqualInt(ARCHIVE_FAILED,
                        archive_read_data(a, buff, sizeof(buff)));
                assertEqualString(archive_error_string(a),
-                   "Unsupported ZIP compression method (deflation)");
+                   "Unsupported ZIP compression method (8: deflation)");
                assert(archive_errno(a) != 0);
        }