Date: Sat, 6 Dec 2008 05:58:24 +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: r185668 - head/lib/libarchive/test Message-ID: <200812060558.mB65wPPq084462@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kientzle Date: Sat Dec 6 05:58:24 2008 New Revision: 185668 URL: http://svn.freebsd.org/changeset/base/185668 Log: Recover from a test failure here. Modified: head/lib/libarchive/test/test_read_format_gtar_sparse.c Modified: head/lib/libarchive/test/test_read_format_gtar_sparse.c ============================================================================== --- head/lib/libarchive/test/test_read_format_gtar_sparse.c Sat Dec 6 05:56:43 2008 (r185667) +++ head/lib/libarchive/test/test_read_format_gtar_sparse.c Sat Dec 6 05:58:24 2008 (r185668) @@ -201,7 +201,10 @@ verify_archive_file(const char *name, st while (ac->filename != NULL) { struct contents *cts = ac->contents; - assertEqualIntA(a, 0, archive_read_next_header(a, &ae)); + if (!assertEqualIntA(a, 0, archive_read_next_header(a, &ae))) { + assert(0 == archive_read_finish(a)); + return; + } failure("Name mismatch in archive %s", name); assertEqualString(ac->filename, archive_entry_pathname(ae));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812060558.mB65wPPq084462>