From owner-svn-src-head@FreeBSD.ORG Wed Dec 17 19:05:26 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BD021065672; Wed, 17 Dec 2008 19:05:26 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 365B28FC14; Wed, 17 Dec 2008 19:05:26 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mBHJ5QZk012613; Wed, 17 Dec 2008 19:05:26 GMT (envelope-from kientzle@svn.freebsd.org) Received: (from kientzle@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBHJ5QoD012612; Wed, 17 Dec 2008 19:05:26 GMT (envelope-from kientzle@svn.freebsd.org) Message-Id: <200812171905.mBHJ5QoD012612@svn.freebsd.org> From: Tim Kientzle Date: Wed, 17 Dec 2008 19:05:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r186247 - head/lib/libarchive/test X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 19:05:26 -0000 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);