From: Simon Josefsson Date: Mon, 19 Jan 2009 10:36:05 +0000 (+0100) Subject: getdate-test: Use progname module. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f63fcdc9792f07e67cabccd7bd7c59d2f2666aee;p=pspp getdate-test: Use progname module. --- diff --git a/ChangeLog b/ChangeLog index a435cfa4a3..a4e7643b3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-01-19 Simon Josefsson + + * 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 * modules/filenamecat-tests (Depends-on): Add progname. diff --git a/modules/getdate-tests b/modules/getdate-tests index a78502e573..afacd09641 100644 --- a/modules/getdate-tests +++ b/modules/getdate-tests @@ -2,6 +2,7 @@ Files: tests/test-getdate.c Depends-on: +progname configure.ac: diff --git a/tests/test-getdate.c b/tests/test-getdate.c index a5977224ca..7dfb09ed44 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) \ @@ -54,6 +56,8 @@ main (int argc, char **argv) struct timespec now; const char *p; + set_program_name (argv[0]); + now.tv_sec = 4711; now.tv_nsec = 1267; p = "now";