diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-09-13 16:11:16 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-09-14 09:29:57 +0200 |
commit | 730d989acc5cd913ffbf747570713c10f46516c4 (patch) | |
tree | 9f9bbf8dabf872b83c0e14160254220a9a804aa4 /src/test/test-unit-name.c | |
parent | tests: use a helper function to parse environment and open logging (diff) | |
download | systemd-730d989acc5cd913ffbf747570713c10f46516c4.tar.xz systemd-730d989acc5cd913ffbf747570713c10f46516c4.zip |
tests: add a helper function to skip with errno
Diffstat (limited to 'src/test/test-unit-name.c')
-rw-r--r-- | src/test/test-unit-name.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/test-unit-name.c b/src/test/test-unit-name.c index b1600db534..157c900276 100644 --- a/src/test/test-unit-name.c +++ b/src/test/test-unit-name.c @@ -205,10 +205,8 @@ 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)) { - log_notice_errno(r, "Skipping test: manager_new: %m"); - return EXIT_TEST_SKIP; - } + if (MANAGER_SKIP_TEST(r)) + return log_tests_skipped_errno(r, "manager_new"); assert_se(r == 0); #define expect(unit, pattern, expected) \ |