Skip to content

Commit

Permalink
test-socket-bind: 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 192a452 commit 1174ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/test-socket-bind.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static int test_socket_bind(
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 1174ebb

Please sign in to comment.