+2009-01-19 Simon Josefsson <simon@josefsson.org>
+
+ * modules/getdate-tests (Depends-on): Add progname.
+ * tests/test-getdate.c: Use progname module, to avoid link errors
+ on non-glibc systems.
+
2009-01-18 Simon Josefsson <simon@josefsson.org>
* modules/filenamecat-tests (Depends-on): Add progname.
/* 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) \
struct timespec now;
const char *p;
+ set_program_name (argv[0]);
+
now.tv_sec = 4711;
now.tv_nsec = 1267;
p = "now";