diff options
author | Tim Kientzle <kientzle@gmail.com> | 2010-02-07 17:49:11 -0500 |
---|---|---|
committer | Tim Kientzle <kientzle@gmail.com> | 2010-02-07 17:49:11 -0500 |
commit | 77c23f6cf80de498172e39f3f249036e864a2c2b (patch) | |
tree | c27b9e07a61cea4cd98b77e7ab8ece052bade504 /libarchive/test/test_write_format_tar.c | |
parent | afea1b2b26be07174bdf1fa010f1c4fdf0acb43f (diff) | |
download | libarchive-77c23f6cf80de498172e39f3f249036e864a2c2b.tar.gz |
Style: Update a bunch of old assert() and assertA() calls.
SVN-Revision: 1887
Diffstat (limited to 'libarchive/test/test_write_format_tar.c')
-rw-r--r-- | libarchive/test/test_write_format_tar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libarchive/test/test_write_format_tar.c b/libarchive/test/test_write_format_tar.c index afc1273f..b8fd2e72 100644 --- a/libarchive/test/test_write_format_tar.c +++ b/libarchive/test/test_write_format_tar.c @@ -71,8 +71,8 @@ DEFINE_TEST(test_write_format_tar) assertA(8 == archive_write_data(a, "12345678", 9)); /* Close out the archive. */ - assertA(0 == archive_write_close(a)); - assertA(0 == archive_write_finish(a)); + assertEqualIntA(a, ARCHIVE_OK, archive_write_close(a)); + assertEqualInt(ARCHIVE_OK, archive_write_finish(a)); /* This calculation gives "the smallest multiple of * the block size that is at least 2048 bytes". */ @@ -101,7 +101,7 @@ DEFINE_TEST(test_write_format_tar) /* Verify the end of the archive. */ assert(1 == archive_read_next_header(a, &ae)); - assert(0 == archive_read_close(a)); - assert(0 == archive_read_finish(a)); + assertEqualIntA(a, ARCHIVE_OK, archive_read_close(a)); + assertEqualInt(ARCHIVE_OK, archive_read_finish(a)); } } |