summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-05-18 17:10:07 +0200
committerLennart Poettering <lennart@poettering.net>2015-05-18 17:10:07 +0200
commit958b66ea16deddd794b3a52643bd44633e165ead (patch)
tree22e30bbfe7e3e81b12fe37cc5754342ec513e92c /src/test
parent3b920d78b4a58dd054917821734cf0aefc6232d0 (diff)
util: split all hostname related calls into hostname-util.c
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-condition.c1
-rw-r--r--src/test/test-unit-file.c1
-rw-r--r--src/test/test-unit-name.c1
-rw-r--r--src/test/test-util.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/src/test/test-condition.c b/src/test/test-condition.c
index 88147c8e0a..b788c9532d 100644
--- a/src/test/test-condition.c
+++ b/src/test/test-condition.c
@@ -28,6 +28,7 @@
#include "ima-util.h"
#include "apparmor-util.h"
#include "smack-util.h"
+#include "hostname-util.h"
static void test_condition_test_path(void) {
Condition *condition;
diff --git a/src/test/test-unit-file.c b/src/test/test-unit-file.c
index 03ca70a493..a9711ac9f5 100644
--- a/src/test/test-unit-file.c
+++ b/src/test/test-unit-file.c
@@ -36,6 +36,7 @@
#include "strv.h"
#include "fileio.h"
#include "test-helper.h"
+#include "hostname-util.h"
static int test_unit_file_get_set(void) {
int r;
diff --git a/src/test/test-unit-name.c b/src/test/test-unit-name.c
index 5053d69d1d..e5405fb7f3 100644
--- a/src/test/test-unit-name.c
+++ b/src/test/test-unit-name.c
@@ -35,6 +35,7 @@
#include "macro.h"
#include "path-util.h"
#include "test-helper.h"
+#include "hostname-util.h"
static void test_unit_name_is_valid(void) {
assert_se(unit_name_is_valid("foo.service", UNIT_NAME_ANY));
diff --git a/src/test/test-util.c b/src/test/test-util.c
index fdb772ddda..9af3e757e3 100644
--- a/src/test/test-util.c
+++ b/src/test/test-util.c
@@ -38,6 +38,7 @@
#include "conf-parser.h"
#include "virt.h"
#include "process-util.h"
+#include "hostname-util.h"
static void test_streq_ptr(void) {
assert_se(streq_ptr(NULL, NULL));