From patchwork Tue Jan 27 14:48:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Bernat X-Patchwork-Id: 4825 X-Patchwork-Delegate: vapier@gentoo.org Received: (qmail 592 invoked by alias); 27 Jan 2015 14:49:32 -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 32707 invoked by uid 89); 27 Jan 2015 14:48:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=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: Tue, 27 Jan 2015 15:48:12 +0100 Message-Id: <1422370092-22288-1-git-send-email-Vincent.Bernat@exoscale.ch> From: Vincent Bernat --- time/tst-strptime2.c | 5 +---- time/tst-strptime3.c | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) 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 ()