test: Minimise includes
authorDaniel Stone <daniel@fooishbar.org>
Fri, 3 Aug 2012 01:45:14 +0000 (03:45 +0200)
committerDaniel Stone <daniel@fooishbar.org>
Wed, 8 Aug 2012 14:23:30 +0000 (16:23 +0200)
Mostly from functions which used to use file functions directly, but now
use test.h wrappers.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
test/dump.c
test/filecomp.c
test/keysym.c
test/rulescomp.c
test/state.c
test/stringcomp.c

index e1120e6..02b74c2 100644 (file)
  */
 
 #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"
index d5ec635..e56893b 100644 (file)
  */
 
 #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"
index ff8685a..719202f 100644 (file)
@@ -1,7 +1,6 @@
 #include <assert.h>
-#include <stdlib.h>
 #include <stdio.h>
-#include <string.h>
+#include <stdlib.h>
 
 #include "test.h"
 
index 30c0df8..8eb9464 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <assert.h>
 #include <stdio.h>
-#include <string.h>
 #include <time.h>
 
 #include "xkbcommon/xkbcommon.h"
index fe57844..4eccb34 100644 (file)
@@ -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
index b7513f6..e13a312 100644 (file)
  */
 
 #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"