From 99405e7b9504db614737629b24ae9611fdce1898 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Fri, 17 Jul 2009 00:21:28 -0400 Subject: [PATCH] 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 --- tar/test/test_version.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'))) { -- 2.47.3