From: Joerg Sonnenberger Date: Fri, 26 Mar 2010 15:42:15 +0000 (-0400) Subject: Explicit test archive_read_next_header against ARCHIVE_OK X-Git-Tag: v3.0.0a~1136 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=988df1e6e059e367e486691b14b063c6dde84893;p=thirdparty%2Flibarchive.git Explicit test archive_read_next_header against ARCHIVE_OK SVN-Revision: 2056 --- diff --git a/libarchive/test/test_read_format_raw.c b/libarchive/test/test_read_format_raw.c index a21e4ea96..6bc8347dd 100644 --- a/libarchive/test/test_read_format_raw.c +++ b/libarchive/test/test_read_format_raw.c @@ -46,7 +46,7 @@ DEFINE_TEST(test_read_format_raw) archive_read_open_filename(a, reffile1, 512)); /* First (and only!) Entry */ - assertA(0 == archive_read_next_header(a, &ae)); + assertEqualIntA(a, ARCHIVE_OK, archive_read_next_header(a, &ae)); assertEqualString("data", archive_entry_pathname(ae)); /* Most fields should be unset (unknown) */ assert(!archive_entry_size_is_set(ae)); @@ -72,7 +72,7 @@ DEFINE_TEST(test_read_format_raw) archive_read_open_filename(a, reffile2, 1)); /* First (and only!) Entry */ - assertA(0 == archive_read_next_header(a, &ae)); + assertEqualIntA(a, ARCHIVE_OK, archive_read_next_header(a, &ae)); assertEqualString("data", archive_entry_pathname(ae)); /* Most fields should be unset (unknown) */ assert(!archive_entry_size_is_set(ae));