summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-26 18:05:03 +0100
committerLennart Poettering <lennart@poettering.net>2015-10-27 13:25:55 +0100
commit0d39fa9c69b97a2ceb156053deef69c0866c2b97 (patch)
treeffab9cf2924c42030cc235cdb1701cfe954958e7 /src/test
parent5f311f8c0e51e2f13773823feb6a71f7c6f2838c (diff)
util-lib: move more file I/O related calls into fileio.[ch]
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-async.c3
-rw-r--r--src/test/test-fdset.c1
-rw-r--r--src/test/test-terminal-util.c7
-rw-r--r--src/test/test-tmpfiles.c1
4 files changed, 8 insertions, 4 deletions
diff --git a/src/test/test-async.c b/src/test/test-async.c
index abd36d693c..ada6d67c42 100644
--- a/src/test/test-async.c
+++ b/src/test/test-async.c
@@ -20,8 +20,9 @@
#include <unistd.h>
#include "async.h"
-#include "util.h"
+#include "fileio.h"
#include "macro.h"
+#include "util.h"
static bool test_async = false;
diff --git a/src/test/test-fdset.c b/src/test/test-fdset.c
index 96d5e38177..282aab1246 100644
--- a/src/test/test-fdset.c
+++ b/src/test/test-fdset.c
@@ -22,6 +22,7 @@
#include "fd-util.h"
#include "fdset.h"
+#include "fileio.h"
#include "macro.h"
#include "util.h"
diff --git a/src/test/test-terminal-util.c b/src/test/test-terminal-util.c
index a41de59719..e940b5a204 100644
--- a/src/test/test-terminal-util.c
+++ b/src/test/test-terminal-util.c
@@ -21,11 +21,12 @@
#include <stdio.h>
#include <stdbool.h>
-#include "terminal-util.h"
+#include "fd-util.h"
+#include "fileio.h"
+#include "log.h"
#include "macro.h"
+#include "terminal-util.h"
#include "util.h"
-#include "log.h"
-#include "fd-util.h"
static void test_default_term_for_tty(void) {
puts(default_term_for_tty("/dev/tty23"));
diff --git a/src/test/test-tmpfiles.c b/src/test/test-tmpfiles.c
index 6aa9cc8473..683fbe217c 100644
--- a/src/test/test-tmpfiles.c
+++ b/src/test/test-tmpfiles.c
@@ -25,6 +25,7 @@
#include <unistd.h>
#include "fd-util.h"
+#include "fileio.h"
#include "formats-util.h"
#include "string-util.h"
#include "util.h"