diff mbox

time: ensure failing strptime() tests are reported correctly

Message ID 1422370092-22288-1-git-send-email-Vincent.Bernat@exoscale.ch
State Superseded
Delegated to: Mike Frysinger
Headers show

Commit Message

Vincent Bernat Jan. 27, 2015, 2:48 p.m. UTC
From: Vincent Bernat <vincent@bernat.im>

---
 time/tst-strptime2.c | 5 +----
 time/tst-strptime3.c | 5 +----
 2 files changed, 2 insertions(+), 8 deletions(-)

Comments

Mike Frysinger March 6, 2015, 10:04 a.m. UTC | #1
patch looks fine, but please write a ChangeLog entry.  i'll push this once 
you've done so.
-mike
diff mbox

Patch

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 ()