diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-11-08 16:37:15 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-11-11 14:55:57 +0100 |
commit | 5eecb1030ffd55296112a3308beca7beca5903b6 (patch) | |
tree | fdc668d8aafce998c03cfe82b4ab6a048e4461fb /src/test/test-load-fragment.c | |
parent | core: split out one more function (diff) | |
download | systemd-5eecb1030ffd55296112a3308beca7beca5903b6.tar.xz systemd-5eecb1030ffd55296112a3308beca7beca5903b6.zip |
tests: make manager_skip_test() not a macro and move to tests.h
There is nothing magic in it.
Diffstat (limited to 'src/test/test-load-fragment.c')
-rw-r--r-- | src/test/test-load-fragment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-load-fragment.c b/src/test/test-load-fragment.c index 216f0e4d94..cb808bfce0 100644 --- a/src/test/test-load-fragment.c +++ b/src/test/test-load-fragment.c @@ -97,7 +97,7 @@ static void test_config_parse_exec(void) { _cleanup_(unit_freep) Unit *u = NULL; r = manager_new(UNIT_FILE_USER, MANAGER_TEST_RUN_MINIMAL, &m); - if (MANAGER_SKIP_TEST(r)) { + if (manager_errno_skip_test(r)) { log_notice_errno(r, "Skipping test: manager_new: %m"); return; } @@ -442,7 +442,7 @@ static void test_config_parse_log_extra_fields(void) { ExecContext c = {}; r = manager_new(UNIT_FILE_USER, MANAGER_TEST_RUN_MINIMAL, &m); - if (MANAGER_SKIP_TEST(r)) { + if (manager_errno_skip_test(r)) { log_notice_errno(r, "Skipping test: manager_new: %m"); return; } |