summaryrefslogtreecommitdiffstats
path: root/src/test/test-execute.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-10-04 19:25:30 +0200
committerGitHub <noreply@github.com>2017-10-04 19:25:30 +0200
commit4aa1d31c89c8fb74e70eed5849c780c4678829a3 (patch)
treed177744263d38b99f48c018cb11e2e4b385d9e90 /src/test/test-execute.c
parentMerge pull request #6985 from yuwata/empty (diff)
parentmeson: generate ENABLE_* names automatically (diff)
downloadsystemd-4aa1d31c89c8fb74e70eed5849c780c4678829a3.tar.xz
systemd-4aa1d31c89c8fb74e70eed5849c780c4678829a3.zip
Merge pull request #6974 from keszybz/clean-up-defines
Clean up define definitions
Diffstat (limited to 'src/test/test-execute.c')
-rw-r--r--src/test/test-execute.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/test-execute.c b/src/test/test-execute.c
index 68166cf749..6786d56197 100644
--- a/src/test/test-execute.c
+++ b/src/test/test-execute.c
@@ -30,7 +30,7 @@
#include "mkdir.h"
#include "path-util.h"
#include "rm-rf.h"
-#ifdef HAVE_SECCOMP
+#if HAVE_SECCOMP
#include "seccomp-util.h"
#endif
#include "stat-util.h"
@@ -243,7 +243,7 @@ static void test_exec_inaccessiblepaths_proc(Manager *m) {
}
static void test_exec_systemcallfilter(Manager *m) {
-#ifdef HAVE_SECCOMP
+#if HAVE_SECCOMP
if (!is_seccomp_available())
return;
test(m, "exec-systemcallfilter-not-failing.service", 0, CLD_EXITED);
@@ -255,14 +255,14 @@ static void test_exec_systemcallfilter(Manager *m) {
}
static void test_exec_systemcallerrornumber(Manager *m) {
-#ifdef HAVE_SECCOMP
+#if HAVE_SECCOMP
if (is_seccomp_available())
test(m, "exec-systemcallerrornumber.service", 1, CLD_EXITED);
#endif
}
static void test_exec_restrict_namespaces(Manager *m) {
-#ifdef HAVE_SECCOMP
+#if HAVE_SECCOMP
if (!is_seccomp_available())
return;
@@ -274,7 +274,7 @@ static void test_exec_restrict_namespaces(Manager *m) {
}
static void test_exec_systemcall_system_mode_with_user(Manager *m) {
-#ifdef HAVE_SECCOMP
+#if HAVE_SECCOMP
if (!is_seccomp_available())
return;
if (getpwnam("nobody"))