test: Minimise includes Mostly from functions which used to use file functions directly, but now use test.h wrappers. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
diff --git a/test/dump.c b/test/dump.c
index e1120e6..02b74c2 100644
--- a/test/dump.c
+++ b/test/dump.c
@@ -25,13 +25,8 @@
*/
#include <assert.h>
-#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
-#include <sys/mman.h>
-#include <sys/stat.h>
-#include <sys/types.h>
#include "xkbcommon/xkbcommon.h"
#include "test.h"
diff --git a/test/filecomp.c b/test/filecomp.c
index d5ec635..e56893b 100644
--- a/test/filecomp.c
+++ b/test/filecomp.c
@@ -25,10 +25,8 @@
*/
#include <assert.h>
-#include <stdlib.h>
#include <stdio.h>
-#include <string.h>
-#include <limits.h>
+#include <stdlib.h>
#include "xkbcommon/xkbcommon.h"
#include "test.h"
diff --git a/test/keysym.c b/test/keysym.c
index ff8685a..719202f 100644
--- a/test/keysym.c
+++ b/test/keysym.c
@@ -1,7 +1,6 @@
#include <assert.h>
-#include <stdlib.h>
#include <stdio.h>
-#include <string.h>
+#include <stdlib.h>
#include "test.h"
diff --git a/test/rulescomp.c b/test/rulescomp.c
index 30c0df8..8eb9464 100644
--- a/test/rulescomp.c
+++ b/test/rulescomp.c
@@ -26,7 +26,6 @@
#include <assert.h>
#include <stdio.h>
-#include <string.h>
#include <time.h>
#include "xkbcommon/xkbcommon.h"
diff --git a/test/state.c b/test/state.c
index fe57844..4eccb34 100644
--- a/test/state.c
+++ b/test/state.c
@@ -29,8 +29,6 @@
#include <linux/input.h>
#include "xkbcommon/xkbcommon.h"
-#include "xkbcommon/xkbcommon-names.h"
-#include "xkb-priv.h"
#include "test.h"
/* Offset between evdev keycodes (where KEY_ESCAPE is 1), and the evdev XKB
diff --git a/test/stringcomp.c b/test/stringcomp.c
index b7513f6..e13a312 100644
--- a/test/stringcomp.c
+++ b/test/stringcomp.c
@@ -24,13 +24,8 @@
*/
#include <assert.h>
-#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/stat.h>
-#include <sys/types.h>
#include "xkbcommon/xkbcommon.h"
#include "test.h"