Include header file being tested immediately after config.h.
authorBruno Haible <bruno@clisp.org>
Thu, 24 Dec 2009 12:48:40 +0000 (13:48 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 24 Dec 2009 12:48:40 +0000 (13:48 +0100)
13 files changed:
ChangeLog
tests/test-argv-iter.c
tests/test-base64.c
tests/test-flock.c
tests/test-fsync.c
tests/test-getdate.c
tests/test-getndelim2.c
tests/test-isfinite.c
tests/test-isinf.c
tests/test-priv-set.c
tests/test-random_r.c
tests/test-strerror.c
tests/test-strsignal.c

index 8c4fe25..e9c5ba7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2009-12-24  Bruno Haible  <bruno@clisp.org>
+
+       * 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  <ebb9@byu.net>
 
        unistd: work around cygwin bug
index eef3014..fffa425 100644 (file)
@@ -17,6 +17,9 @@
 /* Written by Jim Meyering.  */
 
 #include <config.h>
+
+#include "argv-iter.h"
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
@@ -35,8 +38,6 @@
     }                                                                        \
   while (0)
 
-#include "argv-iter.h"
-
 static FILE *
 write_nul_delimited_argv (char **argv)
 {
index c206728..2a2a4f5 100644 (file)
@@ -17,6 +17,8 @@
 
 #include <config.h>
 
+#include "base64.h"
+
 #include <stddef.h>
 #include <stdio.h>
 #include <stdbool.h>
@@ -24,8 +26,6 @@
 #include <string.h>
 #include <stdint.h>
 
-#include "base64.h"
-
 #define ASSERT(expr)                                                    \
   do                                                                    \
     {                                                                   \
index e0147e8..babf6ef 100644 (file)
@@ -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
 
 #include <config.h>
 
+#include <sys/file.h>
+
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <errno.h>
 
-#include <sys/file.h>
-
 #define ASSERT(expr) \
   do                                                                    \
     {                                                                   \
index c00d54f..4766eb0 100644 (file)
 
 #include <config.h>
 
+#include <unistd.h>
+
 #include <errno.h>
 #include <stdio.h>
 #include <fcntl.h>
-#include <unistd.h>
 
 #define ASSERT(expr) \
   do                                                                         \
index 2971f97..b30ef82 100644 (file)
 
 #include <config.h>
 
+#include "getdate.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 
 #include "progname.h"
 
-#include "getdate.h"
-
 #define ASSERT(expr)                                                    \
   do                                                                    \
     {                                                                   \
index 3ced1df..ff641bd 100644 (file)
 
 #include <config.h>
 
+#include "getndelim2.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 
-#include "getndelim2.h"
-
 #define ASSERT(expr) \
   do                                                                         \
     {                                                                        \
index 03f5cac..2d718e2 100644 (file)
@@ -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
 
 #include <config.h>
 
-#include <float.h>
-#include <limits.h>
 #include <math.h>
 
+#include <float.h>
+#include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
 
index dffd990..c1a83d3 100644 (file)
@@ -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
 
 #include <config.h>
 
-#include <float.h>
-#include <limits.h>
 #include <math.h>
 
+#include <float.h>
+#include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
 
index 6d3b87b..8b50a7e 100644 (file)
@@ -17,6 +17,7 @@
 /* Written by David Bartley <dtbartle@csclub.uwaterloo.ca>, 2007.  */
 
 #include <config.h>
+
 #include "priv-set.h"
 
 #if HAVE_GETPPRIV
index 7488543..88deda0 100644 (file)
@@ -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 <http://www.gnu.org/licenses/>.  */
 
 #include <config.h>
+
 #include <stdlib.h>
+
 #include <stdio.h>
 #include <time.h>
 
index ba23edc..22e9f5a 100644 (file)
 
 #include <config.h>
 
+#include <string.h>
+
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 
 #define ASSERT(expr) \
   do                                                                         \
index 3b362dd..6f06d8e 100644 (file)
 
 #include <config.h>
 
+#include <string.h>
+
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 
 #define ASSERT(expr) \
   do                                                                         \