# HG changeset patch # User Bruno Haible # Date 1261658920 -3600 # Node ID 8ba9831d54bf62313034cb0125b460ce21343053 # Parent 8d19393d7abe3afbb473555bff33a54ba2526113 Include header file being tested immediately after config.h. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2009-12-24 Bruno Haible + + * tests/test-argv-iter.c: Include header file being tested immediately + after config.h. + * tests/test-base64.c: Likewise. + * tests/test-flock.c: Likewise. + * tests/test-fsync.c: Likewise. + * tests/test-getdate.c: Likewise. + * tests/test-getndelim2.c: Likewise. + * tests/test-isfinite.c: Likewise. + * tests/test-isinf.c: Likewise. + * tests/test-strerror.c: Likewise. + * tests/test-strsignal.c: Likewise. + 2009-12-23 Eric Blake unistd: work around cygwin bug diff --git a/tests/test-argv-iter.c b/tests/test-argv-iter.c --- a/tests/test-argv-iter.c +++ b/tests/test-argv-iter.c @@ -17,6 +17,9 @@ /* Written by Jim Meyering. */ #include + +#include "argv-iter.h" + #include #include #include @@ -35,8 +38,6 @@ } \ while (0) -#include "argv-iter.h" - static FILE * write_nul_delimited_argv (char **argv) { diff --git a/tests/test-base64.c b/tests/test-base64.c --- a/tests/test-base64.c +++ b/tests/test-base64.c @@ -17,6 +17,8 @@ #include +#include "base64.h" + #include #include #include @@ -24,8 +26,6 @@ #include #include -#include "base64.h" - #define ASSERT(expr) \ do \ { \ diff --git a/tests/test-flock.c b/tests/test-flock.c --- a/tests/test-flock.c +++ b/tests/test-flock.c @@ -1,5 +1,5 @@ /* Test of flock() 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 @@ -16,14 +16,14 @@ #include +#include + #include #include #include #include #include -#include - #define ASSERT(expr) \ do \ { \ diff --git a/tests/test-fsync.c b/tests/test-fsync.c --- a/tests/test-fsync.c +++ b/tests/test-fsync.c @@ -16,10 +16,11 @@ #include +#include + #include #include #include -#include #define ASSERT(expr) \ do \ diff --git a/tests/test-getdate.c b/tests/test-getdate.c --- a/tests/test-getdate.c +++ b/tests/test-getdate.c @@ -19,14 +19,14 @@ #include +#include "getdate.h" + #include #include #include #include "progname.h" -#include "getdate.h" - #define ASSERT(expr) \ do \ { \ diff --git a/tests/test-getndelim2.c b/tests/test-getndelim2.c --- a/tests/test-getndelim2.c +++ b/tests/test-getndelim2.c @@ -19,12 +19,12 @@ #include +#include "getndelim2.h" + #include #include #include -#include "getndelim2.h" - #define ASSERT(expr) \ do \ { \ diff --git a/tests/test-isfinite.c b/tests/test-isfinite.c --- a/tests/test-isfinite.c +++ b/tests/test-isfinite.c @@ -1,5 +1,5 @@ /* Test of isfinite() substitute. - Copyright (C) 2007-2008 Free Software Foundation, Inc. + Copyright (C) 2007-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 @@ -19,10 +19,10 @@ #include +#include + #include #include -#include - #include #include diff --git a/tests/test-isinf.c b/tests/test-isinf.c --- a/tests/test-isinf.c +++ b/tests/test-isinf.c @@ -1,5 +1,5 @@ /* Test of isinf() substitute. - Copyright (C) 2007-2008 Free Software Foundation, Inc. + Copyright (C) 2007-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 @@ -19,10 +19,10 @@ #include +#include + #include #include -#include - #include #include diff --git a/tests/test-priv-set.c b/tests/test-priv-set.c --- a/tests/test-priv-set.c +++ b/tests/test-priv-set.c @@ -17,6 +17,7 @@ /* Written by David Bartley , 2007. */ #include + #include "priv-set.h" #if HAVE_GETPPRIV diff --git a/tests/test-random_r.c b/tests/test-random_r.c --- a/tests/test-random_r.c +++ b/tests/test-random_r.c @@ -1,5 +1,5 @@ /* Test random_r. - 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 @@ -15,7 +15,9 @@ along with this program. If not, see . */ #include + #include + #include #include diff --git a/tests/test-strerror.c b/tests/test-strerror.c --- a/tests/test-strerror.c +++ b/tests/test-strerror.c @@ -19,10 +19,11 @@ #include +#include + #include #include #include -#include #define ASSERT(expr) \ do \ diff --git a/tests/test-strsignal.c b/tests/test-strsignal.c --- a/tests/test-strsignal.c +++ b/tests/test-strsignal.c @@ -19,10 +19,11 @@ #include +#include + #include #include #include -#include #define ASSERT(expr) \ do \