summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>2010-03-19 12:36:49 +0100
committerRalf Habacker <ralf.habacker@freenet.de>2010-03-19 20:11:48 +0100
commitdbecdeabb20e0ce11121819c63373f0afba57c58 (patch)
treed513551d0794c6224406ac7b83a77f1355493fae /test
parent6663cb5dcf6ef931e17b4104f571c59d411219d2 (diff)
downloaddbus-dbecdeabb20e0ce11121819c63373f0afba57c58.tar.gz
Consistently include <config.h> in all C source files and never in header files.
Diffstat (limited to 'test')
-rw-r--r--test/break-loader.c1
-rw-r--r--test/decode-gcov.c1
-rw-r--r--test/name-test/test-ids.c1
-rw-r--r--test/name-test/test-names.c1
-rw-r--r--test/name-test/test-pending-call-dispatch.c1
-rw-r--r--test/name-test/test-pending-call-timeout.c1
-rw-r--r--test/name-test/test-privserver-client.c1
-rw-r--r--test/name-test/test-privserver.c1
-rw-r--r--test/name-test/test-shutdown.c1
-rw-r--r--test/name-test/test-threads-init.c1
-rw-r--r--test/shell-test.c1
-rw-r--r--test/spawn-test.c1
-rw-r--r--test/test-exit.c1
-rw-r--r--test/test-names.c2
-rw-r--r--test/test-service.c1
-rw-r--r--test/test-shell-service.c1
-rw-r--r--test/test-utils.c1
-rw-r--r--test/test-utils.h1
18 files changed, 16 insertions, 3 deletions
diff --git a/test/break-loader.c b/test/break-loader.c
index 8ed44320..f85bd207 100644
--- a/test/break-loader.c
+++ b/test/break-loader.c
@@ -21,6 +21,7 @@
*
*/
+#include <config.h>
#include <dbus/dbus.h>
#include <sys/stat.h>
#include <sys/types.h>
diff --git a/test/decode-gcov.c b/test/decode-gcov.c
index f26afd3e..3b2a1522 100644
--- a/test/decode-gcov.c
+++ b/test/decode-gcov.c
@@ -27,6 +27,7 @@
*
*/
+#include <config.h>
#define DBUS_COMPILATION /* cheat */
#include <dbus/dbus-list.h>
#include <dbus/dbus-string.h>
diff --git a/test/name-test/test-ids.c b/test/name-test/test-ids.c
index f08d4ac9..8f63d044 100644
--- a/test/name-test/test-ids.c
+++ b/test/name-test/test-ids.c
@@ -1,3 +1,4 @@
+#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/test/name-test/test-names.c b/test/name-test/test-names.c
index b09f3638..daf45360 100644
--- a/test/name-test/test-names.c
+++ b/test/name-test/test-names.c
@@ -1,3 +1,4 @@
+#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/test/name-test/test-pending-call-dispatch.c b/test/name-test/test-pending-call-dispatch.c
index 54726498..57582d49 100644
--- a/test/name-test/test-pending-call-dispatch.c
+++ b/test/name-test/test-pending-call-dispatch.c
@@ -7,6 +7,7 @@
* and blocking.
**/
+#include <config.h>
#include <dbus/dbus.h>
#include <dbus/dbus-sysdeps.h>
#include <stdio.h>
diff --git a/test/name-test/test-pending-call-timeout.c b/test/name-test/test-pending-call-timeout.c
index 53a0c3a7..381113bd 100644
--- a/test/name-test/test-pending-call-timeout.c
+++ b/test/name-test/test-pending-call-timeout.c
@@ -3,6 +3,7 @@
* specific and infinite timeout.
**/
+#include <config.h>
#include <dbus/dbus.h>
#include <dbus/dbus-sysdeps.h>
#include <stdio.h>
diff --git a/test/name-test/test-privserver-client.c b/test/name-test/test-privserver-client.c
index 5af470ae..d02eea89 100644
--- a/test/name-test/test-privserver-client.c
+++ b/test/name-test/test-privserver-client.c
@@ -1,3 +1,4 @@
+#include <config.h>
#include "../test-utils.h"
static void
diff --git a/test/name-test/test-privserver.c b/test/name-test/test-privserver.c
index c814001c..100e0cf2 100644
--- a/test/name-test/test-privserver.c
+++ b/test/name-test/test-privserver.c
@@ -1,3 +1,4 @@
+#include <config.h>
#include "../test-utils.h"
static void
diff --git a/test/name-test/test-shutdown.c b/test/name-test/test-shutdown.c
index e76c1ea2..526c1cbc 100644
--- a/test/name-test/test-shutdown.c
+++ b/test/name-test/test-shutdown.c
@@ -1,4 +1,5 @@
+#include <config.h>
#include "../test-utils.h"
static DBusLoop *loop;
diff --git a/test/name-test/test-threads-init.c b/test/name-test/test-threads-init.c
index 8cda413c..5e22852a 100644
--- a/test/name-test/test-threads-init.c
+++ b/test/name-test/test-threads-init.c
@@ -2,6 +2,7 @@
* Test to make sure late thread initialization works
*/
+#include <config.h>
#include <dbus/dbus.h>
#include <dbus/dbus-sysdeps.h>
#include <stdio.h>
diff --git a/test/shell-test.c b/test/shell-test.c
index c0134677..b479a9c6 100644
--- a/test/shell-test.c
+++ b/test/shell-test.c
@@ -1,3 +1,4 @@
+#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#define DBUS_COMPILATION
diff --git a/test/spawn-test.c b/test/spawn-test.c
index 68bd3331..f1a55051 100644
--- a/test/spawn-test.c
+++ b/test/spawn-test.c
@@ -1,3 +1,4 @@
+#include <config.h>
#include <dbus/dbus.h>
#define DBUS_COMPILATION /* cheat and use dbus-sysdeps */
diff --git a/test/test-exit.c b/test/test-exit.c
index abb95865..f3358185 100644
--- a/test/test-exit.c
+++ b/test/test-exit.c
@@ -1,5 +1,4 @@
/* This is a process that just exits with a failure code */
-
int
main (int argc, char **argv)
{
diff --git a/test/test-names.c b/test/test-names.c
index e618e99b..27366350 100644
--- a/test/test-names.c
+++ b/test/test-names.c
@@ -1,4 +1,4 @@
-
+#include <config.h>
#include "test-utils.h"
static DBusLoop *loop;
diff --git a/test/test-service.c b/test/test-service.c
index 93f59f1e..6627ea75 100644
--- a/test/test-service.c
+++ b/test/test-service.c
@@ -1,3 +1,4 @@
+#include <config.h>
#include "test-utils.h"
#ifdef HAVE_UNISTD_H
diff --git a/test/test-shell-service.c b/test/test-shell-service.c
index 21801c7b..57c16123 100644
--- a/test/test-shell-service.c
+++ b/test/test-shell-service.c
@@ -1,3 +1,4 @@
+#include <config.h>
#include "test-utils.h"
diff --git a/test/test-utils.c b/test/test-utils.c
index d875cc95..eda20cd5 100644
--- a/test/test-utils.c
+++ b/test/test-utils.c
@@ -1,3 +1,4 @@
+#include <config.h>
#include "test-utils.h"
typedef struct
diff --git a/test/test-utils.h b/test/test-utils.h
index 90d87767..3e1e55e6 100644
--- a/test/test-utils.h
+++ b/test/test-utils.h
@@ -1,6 +1,5 @@
#ifndef TEST_UTILS_H
#define TEST_UTILS_H
-#include <config.h>
#ifndef DBUS_COMPILATION
#define DBUS_COMPILATION /* Cheat and use private stuff */
#endif