summaryrefslogtreecommitdiffstats
path: root/src/test/test-capability.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-08-27 18:22:45 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-08-27 20:20:23 +0200
commitb7be416f55eda143b0e8f4a8ded8649c92e77d4e (patch)
tree0b9ebd4a9e63e85c0dd3741c40e01bec36316f82 /src/test/test-capability.c
parentmeson: add "develop mode" config switch (diff)
downloadsystemd-b7be416f55eda143b0e8f4a8ded8649c92e77d4e.tar.xz
systemd-b7be416f55eda143b0e8f4a8ded8649c92e77d4e.zip
basic/missing_capability: clean up our defines and check that our fallback is up-to-date
There is little point in #defining and #undefining CAP_LAST_CAP multiple times. The check is only done in developer mode. After all, it's not an error to compile on a newer kernel, and we shouldn't even warn in that case.
Diffstat (limited to 'src/test/test-capability.c')
-rw-r--r--src/test/test-capability.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test-capability.c b/src/test/test-capability.c
index 249323f8cf..2d47c77f46 100644
--- a/src/test/test-capability.c
+++ b/src/test/test-capability.c
@@ -7,6 +7,8 @@
#include <sys/wait.h>
#include <unistd.h>
+#define TEST_CAPABILITY_C
+
#include "alloc-util.h"
#include "capability-util.h"
#include "errno-util.h"