Date: Wed, 17 Dec 2008 19:05:26 +0000 (UTC) From: Tim Kientzle <kientzle@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r186247 - head/lib/libarchive/test Message-ID: <200812171905.mBHJ5QoD012612@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kientzle Date: Wed Dec 17 19:05:25 2008 New Revision: 186247 URL: http://svn.freebsd.org/changeset/base/186247 Log: Exit earlier on failure in this test. Modified: head/lib/libarchive/test/test_write_compress.c Modified: head/lib/libarchive/test/test_write_compress.c ============================================================================== --- head/lib/libarchive/test/test_write_compress.c Wed Dec 17 19:05:00 2008 (r186246) +++ head/lib/libarchive/test/test_write_compress.c Wed Dec 17 19:05:25 2008 (r186247) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812171905.mBHJ5QoD012612>