tests: Cleanup superfluous headers
authorBryce Harrington <bryce@osg.samsung.com>
Thu, 20 Nov 2014 01:18:34 +0000 (17:18 -0800)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 28 Nov 2014 13:54:31 +0000 (15:54 +0200)
Mostly remove headers that aren't actually needed for anything.
Add stdint.h to permit dropping xf86drm.h, which is otherwise unneeded.

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Acked-by: Marek Chalupa <mchqwerty@gmail.com>
Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
12 files changed:
tests/bad-buffer-test.c
tests/buffer-count-test.c
tests/button-test.c
tests/presentation-test.c
tests/setbacklight.c
tests/subsurface-test.c
tests/surface-test.c
tests/text-test.c
tests/vertex-clip-test.c
tests/weston-test-runner.c
tests/weston-test.c
tests/xwayland-test.c

index 3b54ac6..dc93b48 100644 (file)
@@ -24,9 +24,6 @@
 #include "config.h"
 
 #include <unistd.h>
-#include <sys/types.h>
-#include <stdio.h>
-#include <signal.h>
 
 #include "../shared/os-compatibility.h"
 #include "weston-test-client-helper.h"
index 8b1dd5d..5985a9e 100644 (file)
 #include "config.h"
 
 #include <string.h>
-
-#include "weston-test-client-helper.h"
 #include <stdio.h>
-#include <poll.h>
-#include <time.h>
-
 #include <EGL/egl.h>
 #include <wayland-egl.h>
 #include <GLES2/gl2.h>
 
+#include "weston-test-client-helper.h"
+
 #define fail(msg) { fprintf(stderr, "%s failed\n", msg); return -1; }
 
 struct test_data {
index d5ad813..a784258 100644 (file)
@@ -23,6 +23,7 @@
 #include "config.h"
 
 #include <linux/input.h>
+
 #include "weston-test-client-helper.h"
 
 TEST(simple_button_test)
index 4408082..b99e93d 100644 (file)
@@ -23,6 +23,7 @@
 #include "config.h"
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <assert.h>
 #include <time.h>
index c8eba43..5c79b90 100644 (file)
@@ -32,9 +32,9 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdint.h>
 #include <unistd.h>
 #include <fcntl.h>
-#include <xf86drm.h>
 #include <xf86drmMode.h>
 
 #include "libbacklight.h"
index bee249b..cf70017 100644 (file)
 
 #include "config.h"
 
+#include <stdio.h>
 #include <string.h>
 
 #include "weston-test-client-helper.h"
-#include <stdio.h>
 
 #define NUM_SUBSURFACES 3
 
index 1dddd4e..d466a44 100644 (file)
@@ -22,7 +22,6 @@
 
 #include "config.h"
 
-#include <stdlib.h>
 #include <stdio.h>
 #include <assert.h>
 
index c838a5d..0d20add 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <string.h>
 #include <stdio.h>
-#include <linux/input.h>
+
 #include "weston-test-client-helper.h"
 #include "text-client-protocol.h"
 
index 1a09437..f706a04 100644 (file)
 #include "config.h"
 
 #include <assert.h>
-#include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
-#include <math.h>
 
 #include "weston-test-runner.h"
 
index 3e1ace6..c8c2a6c 100644 (file)
@@ -25,7 +25,6 @@
 #include <unistd.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <sys/types.h>
 #include <sys/wait.h>
 #include <string.h>
 #include <assert.h>
index f1e45c1..77eaa23 100644 (file)
 #include "config.h"
 
 #include <stdlib.h>
-#include <string.h>
 #include <assert.h>
 #include <signal.h>
 #include <unistd.h>
+
 #include "../src/compositor.h"
 #include "wayland-test-server-protocol.h"
 
index e94e8f5..ec15a14 100644 (file)
@@ -28,7 +28,6 @@
 #include "config.h"
 
 #include <assert.h>
-#include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <fcntl.h>