summaryrefslogtreecommitdiffstats
path: root/src/test/test-unit-name.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-11-13 16:36:39 +0100
committerGitHub <noreply@github.com>2019-11-13 16:36:39 +0100
commitc214e210c934d331afb6dccdf478c5dd155501b5 (patch)
treed308efba195d5a34f43257b6e8c9c35b84e2189b /src/test/test-unit-name.c
parentMerge pull request #13868 from keszybz/run-exit-code (diff)
parenttest-bpf-devices: skip test on !unified (diff)
downloadsystemd-c214e210c934d331afb6dccdf478c5dd155501b5.tar.xz
systemd-c214e210c934d331afb6dccdf478c5dd155501b5.zip
Merge pull request #13994 from keszybz/bpf-refactor
Refactor the bpf devices code and fix some bugs
Diffstat (limited to 'src/test/test-unit-name.c')
-rw-r--r--src/test/test-unit-name.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/test-unit-name.c b/src/test/test-unit-name.c
index 986fcbb1af..5d18711a5e 100644
--- a/src/test/test-unit-name.c
+++ b/src/test/test-unit-name.c
@@ -15,7 +15,6 @@
#include "special.h"
#include "specifier.h"
#include "string-util.h"
-#include "test-helper.h"
#include "tests.h"
#include "unit-def.h"
#include "unit-name.h"
@@ -234,7 +233,7 @@ static int test_unit_printf(void) {
assert_se(get_shell(&shell) >= 0);
r = manager_new(UNIT_FILE_USER, MANAGER_TEST_RUN_MINIMAL, &m);
- if (MANAGER_SKIP_TEST(r))
+ if (manager_errno_skip_test(r))
return log_tests_skipped_errno(r, "manager_new");
assert_se(r == 0);
@@ -871,7 +870,7 @@ int main(int argc, char* argv[]) {
test_setup_logging(LOG_INFO);
- r = enter_cgroup_subroot();
+ r = enter_cgroup_subroot(NULL);
if (r == -ENOMEDIUM)
return log_tests_skipped("cgroupfs not available");