summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/alloc.c1
-rw-r--r--tests/bfstd.c3
-rw-r--r--tests/bit.c2
-rw-r--r--tests/ioq.c2
-rw-r--r--tests/main.c3
-rw-r--r--tests/xtime.c4
-rw-r--r--tests/xtouch.c1
7 files changed, 7 insertions, 9 deletions
diff --git a/tests/alloc.c b/tests/alloc.c
index 4ce23d4..9f08111 100644
--- a/tests/alloc.c
+++ b/tests/alloc.c
@@ -3,6 +3,7 @@
#include "tests.h"
#include "../src/alloc.h"
+#include "../src/config.h"
#include "../src/diag.h"
#include <errno.h>
#include <stdlib.h>
diff --git a/tests/bfstd.c b/tests/bfstd.c
index 0ded5de..26abdb6 100644
--- a/tests/bfstd.c
+++ b/tests/bfstd.c
@@ -7,9 +7,6 @@
#include "../src/diag.h"
#include <errno.h>
#include <langinfo.h>
-#include <locale.h>
-#include <stdint.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/tests/bit.c b/tests/bit.c
index b944748..3d66ce3 100644
--- a/tests/bit.c
+++ b/tests/bit.c
@@ -3,10 +3,10 @@
#include "tests.h"
#include "../src/bit.h"
+#include "../src/config.h"
#include "../src/diag.h"
#include <limits.h>
#include <stdint.h>
-#include <stdlib.h>
bfs_static_assert(UMAX_WIDTH(0x1) == 1);
bfs_static_assert(UMAX_WIDTH(0x3) == 2);
diff --git a/tests/ioq.c b/tests/ioq.c
index 56e1886..1ce8f75 100644
--- a/tests/ioq.c
+++ b/tests/ioq.c
@@ -4,10 +4,12 @@
#include "tests.h"
#include "../src/ioq.h"
#include "../src/bfstd.h"
+#include "../src/config.h"
#include "../src/diag.h"
#include "../src/dir.h"
#include <errno.h>
#include <fcntl.h>
+#include <stdlib.h>
/**
* Test for blocking within ioq_slot_push().
diff --git a/tests/main.c b/tests/main.c
index 38438b2..8849e8c 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -6,11 +6,8 @@
*/
#include "tests.h"
-#include "../src/bfstd.h"
#include "../src/color.h"
#include "../src/config.h"
-#include "../src/diag.h"
-#include <errno.h>
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/tests/xtime.c b/tests/xtime.c
index 3f1fec2..c8dc00b 100644
--- a/tests/xtime.c
+++ b/tests/xtime.c
@@ -5,10 +5,10 @@
#include "../src/xtime.h"
#include "../src/bfstd.h"
#include "../src/config.h"
+#include "../src/diag.h"
#include <errno.h>
+#include <limits.h>
#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <time.h>
static bool tm_equal(const struct tm *tma, const struct tm *tmb) {
diff --git a/tests/xtouch.c b/tests/xtouch.c
index 8c5c5f3..fad272f 100644
--- a/tests/xtouch.c
+++ b/tests/xtouch.c
@@ -11,6 +11,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
+#include <sys/types.h>
#include <time.h>
#include <unistd.h>