X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ftime%2Ftime.c;h=27598b81b1179cea191b912d2f22084932860e9d;hb=462b4f35652098e26c677f89df6990428a4aad6a;hp=a06aac7fd3874101b77a8a816703c66c70911491;hpb=80371a77c4d6978e786ab2322161c4f8e299e891;p=libc-test diff --git a/src/time/time.c b/src/time/time.c index a06aac7..27598b8 100644 --- a/src/time/time.c +++ b/src/time/time.c @@ -6,7 +6,7 @@ /* We use this instead of memcmp because some broken C libraries * add additional nonstandard fields to struct tm... */ - + int tm_cmp(struct tm tm1, struct tm tm2) { return tm1.tm_sec != tm2.tm_sec || @@ -50,7 +50,8 @@ char *tm_str(struct tm tm) ((r) = (f)) == (x) || \ (error("%s failed (" m ")\n", #f, r, x), 0) ) -void test_time(void) { +int main(void) +{ struct tm tm, *tm_p; time_t t; @@ -71,4 +72,5 @@ void test_time(void) { TEST_TM(*tm_p, TM_Y2038, "mktime/gmtime(Y2038)"); /* FIXME: set a TZ var and check DST boundary conditions */ + return test_status; }