diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2011-06-25 04:29:08 -0400 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2011-06-25 04:29:08 -0400 |
commit | 6f334d42006e25ad1a17805c8d527e90c2074a25 (patch) | |
tree | 0a50db0c327d1f09994a0eaa207096b5acbd8a1b /libarchive/test/test_read_format_gtar_gz.c | |
parent | b95049c54e4f43b3e5cf78265fb52c561c452408 (diff) | |
download | libarchive-6f334d42006e25ad1a17805c8d527e90c2074a25.tar.gz |
Fix counting files read, dot not count it up when returning ARCHIVE_EOF.
Add the check of the return value of archive_file_count() into several
format reader tests.
SVN-Revision: 3421
Diffstat (limited to 'libarchive/test/test_read_format_gtar_gz.c')
-rw-r--r-- | libarchive/test/test_read_format_gtar_gz.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libarchive/test/test_read_format_gtar_gz.c b/libarchive/test/test_read_format_gtar_gz.c index cc95c1ae..d688f08f 100644 --- a/libarchive/test/test_read_format_gtar_gz.c +++ b/libarchive/test/test_read_format_gtar_gz.c @@ -50,6 +50,7 @@ DEFINE_TEST(test_read_format_gtar_gz) assertEqualInt(ARCHIVE_OK, archive_read_open_memory(a, archive, sizeof(archive))); assertEqualInt(ARCHIVE_OK, archive_read_next_header(a, &ae)); + assertEqualInt(1, archive_file_count(a)); assertEqualInt(archive_compression(a), ARCHIVE_COMPRESSION_GZIP); assertEqualInt(archive_format(a), ARCHIVE_FORMAT_TAR_GNUTAR); |