]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-path.c
test: adjust test-path to fail gracefully with the new pidfd_spawn stuff
[thirdparty/systemd.git] / src / test / test-path.c
index 22ed88f7e716789166c1c6e94e7275373f18348d..e49653a2404b3173cd085dc00ecae0fc82c70db6 100644 (file)
@@ -100,7 +100,8 @@ static int _check_states(unsigned line,
                          service_state_to_string(service->state),
                          service_result_to_string(service->result));
 
-                if (service->state == SERVICE_FAILED && service->main_exec_status.status == EXIT_CGROUP) {
+                if (service->state == SERVICE_FAILED &&
+                    (service->main_exec_status.status == EXIT_CGROUP || service->result == SERVICE_FAILURE_RESOURCES)) {
                         const char *ci = ci_environment();
 
                         /* On a general purpose system we may fail to start the service for reasons which are