summaryrefslogtreecommitdiffstats
path: root/libarchive/test/test_write_format_cpio_empty.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/test/test_write_format_cpio_empty.c')
-rw-r--r--libarchive/test/test_write_format_cpio_empty.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libarchive/test/test_write_format_cpio_empty.c b/libarchive/test/test_write_format_cpio_empty.c
index 131ac24..53aaec8 100644
--- a/libarchive/test/test_write_format_cpio_empty.c
+++ b/libarchive/test/test_write_format_cpio_empty.c
@@ -61,12 +61,8 @@ DEFINE_TEST(test_write_format_cpio_empty)
assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used));
/* Close out the archive. */
- assertA(0 == archive_write_close(a));
-#if ARCHIVE_VERSION_NUMBER < 2000000
- archive_write_finish(a);
-#else
- assertA(0 == archive_write_finish(a));
-#endif
+ assertEqualIntA(a, ARCHIVE_OK, archive_write_close(a));
+ assertEqualInt(ARCHIVE_OK, archive_write_free(a));
failure("Empty cpio archive should be exactly 87 bytes, was %d.", used);
assert(used == 87);
OpenPOWER on IntegriCloud