]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Exit this test early on format failures.
authorTim Kientzle <kientzle@gmail.com>
Fri, 17 Jul 2009 04:21:28 +0000 (00:21 -0400)
committerTim Kientzle <kientzle@gmail.com>
Fri, 17 Jul 2009 04:21:28 +0000 (00:21 -0400)
In particular, I've been toying with
   bsdtar_test -p gtar
and this test is rather noisy then.

SVN-Revision: 1227

tar/test/test_version.c

index 68eb685e0db5cf5140c18a20a4bd350971ddd0db..42472d1bc264c2650265a74ff6593564b52747d0 100644 (file)
@@ -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'))) {