From 3e2d7ac6c75ad7c92d25f59d11bd455d37ba4e37 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 24 Dec 2009 13:48:40 +0100 Subject: [PATCH] Include header file being tested immediately after config.h. --- ChangeLog | 14 ++++++++++++++ tests/test-argv-iter.c | 5 +++-- tests/test-base64.c | 4 ++-- tests/test-flock.c | 6 +++--- tests/test-fsync.c | 3 ++- tests/test-getdate.c | 4 ++-- tests/test-getndelim2.c | 4 ++-- tests/test-isfinite.c | 6 +++--- tests/test-isinf.c | 6 +++--- tests/test-priv-set.c | 1 + tests/test-random_r.c | 4 +++- tests/test-strerror.c | 3 ++- tests/test-strsignal.c | 3 ++- 13 files changed, 42 insertions(+), 21 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8c4fe25ee..e9c5ba7fb 100644 --- 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 index eef30148e..fffa425c7 100644 --- 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 index c2067284e..2a2a4f522 100644 --- 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 index e0147e8de..babf6efea 100644 --- 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 index c00d54fb3..4766eb06a 100644 --- 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 index 2971f97e4..b30ef82c4 100644 --- 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 index 3ced1df50..ff641bd51 100644 --- 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 index 03f5cac0c..2d718e2cc 100644 --- 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 #include diff --git a/tests/test-isinf.c b/tests/test-isinf.c index dffd99088..c1a83d30e 100644 --- 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 #include diff --git a/tests/test-priv-set.c b/tests/test-priv-set.c index 6d3b87ba0..8b50a7e14 100644 --- 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 index 748854332..88deda036 100644 --- 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 index ba23edc91..22e9f5ad9 100644 --- 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 index 3b362dd19..6f06d8eca 100644 --- a/tests/test-strsignal.c +++ b/tests/test-strsignal.c @@ -19,10 +19,11 @@ #include +#include + #include #include #include -#include #define ASSERT(expr) \ do \ -- 2.11.0