This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix strftime test


Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/language/c/libc/time/current/ChangeLog,v
retrieving revision 1.23
diff -u -5 -p -r1.23 ChangeLog
--- ChangeLog	31 Aug 2006 19:17:34 -0000	1.23
+++ ChangeLog	2 Oct 2006 14:17:33 -0000
@@ -1,5 +1,9 @@
+2006-10-02  Jonathan Larmour  <jifl@eCosCentric.com>
+
+	* tests/strftime.c (test): Fix %I test.
+
 2006-08-31  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* cdl/time.cdl: Don't bother inlining mktime() or
 	gmtime_r() by default - they're too big to be worth it.
 
Index: tests/strftime.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/language/c/libc/time/current/tests/strftime.c,v
retrieving revision 1.3
diff -u -5 -p -r1.3 strftime.c
--- tests/strftime.c	23 May 2002 23:07:35 -0000	1.3
+++ tests/strftime.c	2 Oct 2006 14:17:33 -0000
@@ -116,11 +116,11 @@ test( CYG_ADDRWORD data )
     size = strftime(s, 1000, "%H", &tm1);
     CYG_TEST_PASS_FAIL((size==2) && !my_strcmp(s, "20"),
                        "strftime test #7");
 
     size = strftime(s, 1000, "%I", &tm1);
-    CYG_TEST_PASS_FAIL((size==2) && !my_strcmp(s, "09"),
+    CYG_TEST_PASS_FAIL((size==2) && !my_strcmp(s, "08"),
                        "strftime test #8");
 
     size = strftime(s, 1000, "%j", &tm1);
     CYG_TEST_PASS_FAIL((size==3) && !my_strcmp(s, "051"),
                        "strftime test #9");


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]