From patchwork Fri Mar 6 11:01:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Bernat X-Patchwork-Id: 5493 Received: (qmail 102092 invoked by alias); 6 Mar 2015 11:02:25 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 102021 invoked by uid 89); 6 Mar 2015 11:02:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL, BAYES_00, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: bart.luffy.cx From: Vincent Bernat To: libc-alpha@sourceware.org Cc: Vincent Bernat Subject: [PATCH] time: ensure failing strptime() tests are reported correctly Date: Fri, 6 Mar 2015 12:01:52 +0100 Message-Id: <1425639712-28393-1-git-send-email-Vincent.Bernat@exoscale.ch> In-Reply-To: <20150306100412.GT12857@vapier> References: <20150306100412.GT12857@vapier> From: Vincent Bernat --- ChangeLog | 6 ++++++ time/tst-strptime2.c | 5 +---- time/tst-strptime3.c | 5 +---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 420f351ee0d9..0eb779d91fce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-03-06 Vincent Bernat + + * time/tst-strptime2.c (do_test): Ensure failing tests are + reported correctly. + * time/tst-strptime3.c (do_test): Likewise. + 2015-03-06 Samuel Thibault Fix aio_error thread-safety. diff --git a/time/tst-strptime2.c b/time/tst-strptime2.c index bcd6cc8be98f..a08e6d7cb7de 100644 --- a/time/tst-strptime2.c +++ b/time/tst-strptime2.c @@ -52,10 +52,7 @@ do_test (void) } } - if (result == 0) - puts ("all OK"); - - return 0; + return result; } #define TEST_FUNCTION do_test () diff --git a/time/tst-strptime3.c b/time/tst-strptime3.c index 75b57c192871..d53f51ee2244 100644 --- a/time/tst-strptime3.c +++ b/time/tst-strptime3.c @@ -48,10 +48,7 @@ do_test (void) result = 1; } - if (result == 0) - puts ("all OK"); - - return 0; + return result; } #define TEST_FUNCTION do_test ()