projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test-getaddrinfo: skip (don't fail) this test when there's no network
[gnulib.git]
/
tests
/
test-getdate.c
diff --git
a/tests/test-getdate.c
b/tests/test-getdate.c
index
874d918
..
7dfb09e
100644
(file)
--- a/
tests/test-getdate.c
+++ b/
tests/test-getdate.c
@@
-1,5
+1,5
@@
/* Test of getdate() function.
/* 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
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 <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
+#include "progname.h"
+
#include "getdate.h"
#define ASSERT(expr) \
#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
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)
{
#endif
int
main (int argc, char **argv)
{
- bool ret;
struct timespec result;
struct timespec result2;
struct timespec now;
const char *p;
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";
now.tv_sec = 4711;
now.tv_nsec = 1267;
p = "now";