Skip to content

Commit

Permalink
fix exit status
Browse files Browse the repository at this point in the history
`exit` has higher precedence than `?:`, so `exit $has_errors ? 1 : 0` parses as `(exit $has_errors) ? 1 : 0`, which is not what was intended.
  • Loading branch information
mauke authored and haarg committed Nov 23, 2023
1 parent d9a9286 commit 7c1f15f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xt/author/http-server.t
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ sub prove {

my $aggregator = $harness->runtests(@tests);

exit $aggregator->has_errors ? 1 : 0;
exit($aggregator->has_errors ? 1 : 0);
} else {
waitpid $pid, 0;
return $?;
Expand Down

0 comments on commit 7c1f15f

Please sign in to comment.