X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-getdate.c;h=7dfb09ed44772f80600db4974dc3bea9576d487d;hb=283dd26efdfbeeff672cbcb0e6811f54e032364f;hp=874d918e20e149f6adac9191d8802746b343ba87;hpb=929a85498c0c5657499db769f36c739d28467c8f;p=gnulib.git diff --git a/tests/test-getdate.c b/tests/test-getdate.c index 874d918e2..7dfb09ed4 100644 --- a/tests/test-getdate.c +++ b/tests/test-getdate.c @@ -1,5 +1,5 @@ /* Test of getdate() function. - Copyright (C) 2008 Free Software Foundation, Inc. + Copyright (C) 2008, 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,6 +23,8 @@ #include #include +#include "progname.h" + #include "getdate.h" #define ASSERT(expr) \ @@ -43,18 +45,19 @@ printf ("string `%s' diff %d %d\n", \ str, res.tv_sec - now.tv_sec, res.tv_nsec - now.tv_nsec); #else -#define LOG(str, now, res) 0 +#define LOG(str, now, res) (void) 0 #endif int main (int argc, char **argv) { - bool ret; struct timespec result; struct timespec result2; struct timespec now; const char *p; + set_program_name (argv[0]); + now.tv_sec = 4711; now.tv_nsec = 1267; p = "now";