diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-11-17 20:57:22 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-11-17 20:57:22 -0500 |
commit | 5c7119f43e8ae91d4310838f7ddd8b05d0eece32 (patch) | |
tree | 93b46b68650bfb3782cc485dc3c3790d377d5edf /src/test/test-ipcrm.c | |
parent | 041b5ae170fe0b0d49611d26ae09e8438099733f (diff) |
test-ipcrm: skip test if nfsnobody is missing
Diffstat (limited to 'src/test/test-ipcrm.c')
-rw-r--r-- | src/test/test-ipcrm.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/test-ipcrm.c b/src/test/test-ipcrm.c index 551eba7215..463e135e2b 100644 --- a/src/test/test-ipcrm.c +++ b/src/test/test-ipcrm.c @@ -28,9 +28,11 @@ int main(int argc, char *argv[]) { r = get_user_creds(&name, &uid, NULL, NULL, NULL); if (r < 0) { - log_error_errno(r, "Failed to resolve \"%s\": %m", name); - return EXIT_FAILURE; + log_full_errno(r == -ESRCH ? LOG_NOTICE : LOG_ERR, + r, "Failed to resolve \"%s\": %m", name); + return r == -ESRCH ? EXIT_TEST_SKIP : EXIT_FAILURE; } - return clean_ipc_by_uid(uid) < 0 ? EXIT_FAILURE : EXIT_SUCCESS; + r = clean_ipc_by_uid(uid); + return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS; } |