diff options
author | Tim Kientzle <kientzle@FreeBSD.org> | 2008-12-06 06:02:26 +0000 |
---|---|---|
committer | Tim Kientzle <kientzle@FreeBSD.org> | 2008-12-06 06:02:26 +0000 |
commit | 605fc11462f0106da62cde03cfb1b26ad4c4ba2f (patch) | |
tree | af61f370e42f42f66b17210b0a20a7e94b6d814e | |
parent | 796b6689808f98c2f4f94515f8e0b751ec63c713 (diff) | |
download | src-605fc11462f0106da62cde03cfb1b26ad4c4ba2f.tar.gz src-605fc11462f0106da62cde03cfb1b26ad4c4ba2f.zip |
Recover after test failure.
Notes
Notes:
svn path=/head/; revision=185672
-rw-r--r-- | lib/libarchive/test/test_write_format_cpio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libarchive/test/test_write_format_cpio.c b/lib/libarchive/test/test_write_format_cpio.c index 6d0858a3510e..ffc1d7a06d58 100644 --- a/lib/libarchive/test/test_write_format_cpio.c +++ b/lib/libarchive/test/test_write_format_cpio.c @@ -134,7 +134,10 @@ test_format(int (*set_format)(struct archive *)) assertA(0 == archive_read_support_compression_all(a)); assertA(0 == archive_read_open_memory(a, buff, used)); - assertEqualIntA(a, 0, archive_read_next_header(a, &ae)); + if (!assertEqualIntA(a, 0, archive_read_next_header(a, &ae))) { + archive_read_finish(a); + return; + } assertEqualInt(1, archive_entry_mtime(ae)); /* Not the same as above: cpio doesn't store hi-res times. */ |