Mercurial > hg > octave-nkf > gnulib-hg
changeset 15730:8e2b0feee111
time tests: Don't require pid_t.
* tests/test-time.c: Comment out the check for pid_t.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 21 Sep 2011 01:03:23 +0200 |
parents | d4ef28dc56e2 |
children | 100f7d4f443d |
files | ChangeLog tests/test-time.c |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-09-20 Bruno Haible <bruno@clisp.org> + + time tests: Don't require pid_t. + * tests/test-time.c: Comment out the check for pid_t. + 2011-09-20 Bruno Haible <bruno@clisp.org> fsync tests: Avoid a test failure on mingw.
--- a/tests/test-time.c +++ b/tests/test-time.c @@ -24,7 +24,11 @@ /* Check that the types are all defined. */ struct timespec t1; +#if 0 +/* POSIX:2008 does not require pid_t in <time.h> unconditionally, and indeed + it's missing on MacOS X 10.5, FreeBSD 6.4, OpenBSD 4.9, mingw. */ pid_t t2; +#endif /* Check that NULL can be passed through varargs as a pointer type, per POSIX 2008. */