summaryrefslogtreecommitdiff
path: root/src/test/test-execute.c
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2015-10-30 13:51:51 +0100
committerRonny Chevalier <chevalier.ronny@gmail.com>2015-10-31 15:07:19 +0100
commit63447f1153093c883b2488e53f46ff581d904e6a (patch)
treee87c52c1a829db13b36226b112efacc2cbc7185d /src/test/test-execute.c
parented574a6834d267c82cac0408fe977c26256bec9a (diff)
test-execute: add test for PrivateNetwork
Diffstat (limited to 'src/test/test-execute.c')
-rw-r--r--src/test/test-execute.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/test-execute.c b/src/test/test-execute.c
index afbaa12e94..fb0cb3fdc4 100644
--- a/src/test/test-execute.c
+++ b/src/test/test-execute.c
@@ -178,6 +178,18 @@ static void test_exec_capabilityboundingset(Manager *m) {
test(m, "exec-capabilityboundingset-invert.service", 0, CLD_EXITED);
}
+static void test_exec_privatenetwork(Manager *m) {
+ int r;
+
+ r = find_binary("ip", NULL);
+ if (r < 0) {
+ log_error_errno(r, "Skipping test_exec_privatenetwork, could not find ip binary: %m");
+ return;
+ }
+
+ test(m, "exec-privatenetwork-yes.service", 0, CLD_EXITED);
+}
+
int main(int argc, char *argv[]) {
test_function_t tests[] = {
test_exec_workingdirectory,
@@ -185,6 +197,7 @@ int main(int argc, char *argv[]) {
test_exec_ignoresigpipe,
test_exec_privatetmp,
test_exec_privatedevices,
+ test_exec_privatenetwork,
test_exec_systemcallfilter,
test_exec_systemcallerrornumber,
test_exec_user,