/* 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
#include <stdlib.h>
#include <string.h>
+#include "progname.h"
+
#include "getdate.h"
#define ASSERT(expr) \
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";