mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Recover from a test failure here.
This commit is contained in:
parent
0a68927a88
commit
23fb0d7a7c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185668
|
@ -201,7 +201,10 @@ verify_archive_file(const char *name, struct archive_contents *ac)
|
|||
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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue