mirror of
https://github.com/systemd/systemd
synced 2024-09-06 00:41:36 +00:00
test-ipcrm: skip test if nfsnobody is missing
This commit is contained in:
parent
041b5ae170
commit
5c7119f43e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue