Exit earlier on failure in this test.

This commit is contained in:
Tim Kientzle 2008-12-17 19:05:25 +00:00
parent 9515da8712
commit eef2284331

View File

@ -85,11 +85,11 @@ DEFINE_TEST(test_write_compress)
for (i = 0; i < 100; i++) {
sprintf(path, "file%03d", i);
assertEqualInt(0, archive_read_next_header(a, &ae));
if (!assertEqualInt(0, archive_read_next_header(a, &ae)))
break;
assertEqualString(path, archive_entry_pathname(ae));
assertEqualInt(datasize, archive_entry_size(ae));
}
assert(0 == archive_read_close(a));
#if ARCHIVE_VERSION_NUMBER < 2000000
archive_read_finish(a);