From 988df1e6e059e367e486691b14b063c6dde84893 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Fri, 26 Mar 2010 11:42:15 -0400 Subject: [PATCH] Explicit test archive_read_next_header against ARCHIVE_OK SVN-Revision: 2056 --- libarchive/test/test_read_format_raw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); -- 2.47.3