Skip to content

Commit

Permalink
test-bpf-foreign-programs: pass the right error variable
Browse files Browse the repository at this point in the history
(cherry picked from commit 3a50467)
(cherry picked from commit b71cbef)
  • Loading branch information
dtardon authored and bluca committed May 9, 2024
1 parent 22a3e92 commit cf7fe02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/test-bpf-foreign-programs.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static int test_bpf_cgroup_programs(Manager *m, const char *unit_name, const Tes
while (!IN_SET(SERVICE(u)->state, SERVICE_DEAD, SERVICE_FAILED)) {
r = sd_event_run(m->event, UINT64_MAX);
if (r < 0)
return log_error_errno(errno, "Event run failed %m");
return log_error_errno(r, "Event run failed %m");
}

cld_code = SERVICE(u)->exec_command[SERVICE_EXEC_START]->exec_status.code;
Expand Down

0 comments on commit cf7fe02

Please sign in to comment.