From: Tim Kientzle Date: Fri, 17 Jul 2009 04:21:28 +0000 (-0400) Subject: Exit this test early on format failures. X-Git-Tag: v2.8.0~534 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99405e7b9504db614737629b24ae9611fdce1898;p=thirdparty%2Flibarchive.git Exit this test early on format failures. In particular, I've been toying with bsdtar_test -p gtar and this test is rather noisy then. SVN-Revision: 1227 --- diff --git a/tar/test/test_version.c b/tar/test/test_version.c index 68eb685e0..42472d1bc 100644 --- a/tar/test/test_version.c +++ b/tar/test/test_version.c @@ -52,7 +52,8 @@ DEFINE_TEST(test_version) /* Version message should start with name of program, then space. */ assert(s > 6); failure("Version must start with 'bsdtar': ``%s''", p); - assertEqualMem(q, "bsdtar ", 7); + if (!assertEqualMem(q, "bsdtar ", 7)) + return; q += 7; s -= 7; /* Version number is a series of digits and periods. */ while (s > 0 && (*q == '.' || (*q >= '0' && *q <= '9'))) {