From patchwork Thu Jun 16 15:29:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zakharov Vlad X-Patchwork-Id: 636531 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from helium.openadk.org (helium.openadk.org [89.238.66.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rVnPB2F0zz9sxR for ; Fri, 17 Jun 2016 01:29:33 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id BE4F010133; Thu, 16 Jun 2016 17:29:29 +0200 (CEST) X-Original-To: devel@uclibc-ng.org Delivered-To: devel@helium.openadk.org Received: from smtprelay.synopsys.com (us01smtprelay-2.synopsys.com [198.182.47.9]) by helium.openadk.org (Postfix) with ESMTPS id 7E78B10126; Thu, 16 Jun 2016 17:29:27 +0200 (CEST) Received: from dc8secmta2.synopsys.com (dc8secmta2.synopsys.com [10.13.218.202]) by smtprelay.synopsys.com (Postfix) with ESMTP id ED03724E0111; Thu, 16 Jun 2016 08:29:25 -0700 (PDT) Received: from dc8secmta2.internal.synopsys.com (dc8secmta2.internal.synopsys.com [127.0.0.1]) by dc8secmta2.internal.synopsys.com (Service) with ESMTP id B8D24A4112; Thu, 16 Jun 2016 08:29:25 -0700 (PDT) Received: from mailhost.synopsys.com (unknown [10.13.184.66]) by dc8secmta2.internal.synopsys.com (Service) with ESMTP id 98A91A4102; Thu, 16 Jun 2016 08:29:25 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 89A2AB74; Thu, 16 Jun 2016 08:29:25 -0700 (PDT) Received: from vzakhar-8460.internal.synopsys.com (unknown [10.121.8.147]) by mailhost.synopsys.com (Postfix) with ESMTP id 253D4B69; Thu, 16 Jun 2016 08:29:23 -0700 (PDT) From: Vlad Zakharov To: devel@uclibc-ng.org Date: Thu, 16 Jun 2016 18:29:09 +0300 Message-Id: <1466090949-18292-1-git-send-email-vzakhar@synopsys.com> X-Mailer: git-send-email 2.5.5 Cc: Vlad Zakharov , Alexey Brodkin , Eugeniy Paltsev Subject: [uclibc-ng-devel] [PATCH] test: regex: Make testregex return error count X-BeenThere: devel@uclibc-ng.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: uClibc-ng Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: devel-bounces@uclibc-ng.org Sender: "devel" Testregex returned 0 even when some sub-tests inside the testregex failed. Now it returns error count. Signed-off-by: Vlad Zakharov --- test/regex/testregex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/regex/testregex.c b/test/regex/testregex.c index 993ac26..d18761d 100644 --- a/test/regex/testregex.c +++ b/test/regex/testregex.c @@ -2115,7 +2115,7 @@ old_main(int unused_param_argc, char** argv) if (fp != stdin) fclose(fp); } - return 0; + return state.errors; } int main(int argc, char **argv)