aboutsummaryrefslogtreecommitdiff
path: root/lib/libarchive/test/test_read_format_zip.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2008-08-10 03:13:42 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2008-08-10 03:13:42 +0000
commitdde4785e50d720d471d8a3e1fa444c4f358cd155 (patch)
tree387800297857b79d1ea9bb9a55feb99f19a3932d /lib/libarchive/test/test_read_format_zip.c
parent07fe09e2279b9479f303b14dc98dc93e43ff7414 (diff)
Notes
Diffstat (limited to 'lib/libarchive/test/test_read_format_zip.c')
-rw-r--r--lib/libarchive/test/test_read_format_zip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libarchive/test/test_read_format_zip.c b/lib/libarchive/test/test_read_format_zip.c
index 707391ce853e..d385b1cc6a2b 100644
--- a/lib/libarchive/test/test_read_format_zip.c
+++ b/lib/libarchive/test/test_read_format_zip.c
@@ -51,12 +51,14 @@ DEFINE_TEST(test_read_format_zip)
assertEqualString("file1", archive_entry_pathname(ae));
assertEqualInt(1179604289, archive_entry_mtime(ae));
assertEqualInt(18, archive_entry_size(ae));
+ failure("archive_read_data() returns number of bytes read");
assertEqualInt(18, archive_read_data(a, buff, 19));
assert(0 == memcmp(buff, "hello\nhello\nhello\n", 18));
assertA(0 == archive_read_next_header(a, &ae));
assertEqualString("file2", archive_entry_pathname(ae));
assertEqualInt(1179605932, archive_entry_mtime(ae));
assertEqualInt(18, archive_entry_size(ae));
+ failure("file2 has a bad CRC, so reading to end should fail");
assertEqualInt(ARCHIVE_WARN, archive_read_data(a, buff, 19));
assert(0 == memcmp(buff, "hello\nhello\nhello\n", 18));
assertA(archive_compression(a) == ARCHIVE_COMPRESSION_NONE);