Skip to content

Commit

Permalink
test-bpf-restrict-fs: pass the right error variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dtardon committed May 7, 2024
1 parent 1174ebb commit 2dd1676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/test-bpf-restrict-fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static int test_restrict_filesystems(Manager *m, const char *unit_name, const ch
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 2dd1676

Please sign in to comment.