From: Vincent Bernat Date: Fri, 6 Mar 2015 11:01:52 +0000 (+0100) Subject: time: ensure failing strptime() tests are reported correctly X-Git-Tag: upstream/2.30~6253 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5df56c7e3a236b39b3395e042015b541172f652b;p=external%2Fglibc.git time: ensure failing strptime() tests are reported correctly --- diff --git a/ChangeLog b/ChangeLog index 420f351..0eb779d 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 bcd6cc8..a08e6d7 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 75b57c1..d53f51e 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 ()