Skip to content

Commit

Permalink
harness: fix operator precedence in call to exit
Browse files Browse the repository at this point in the history
Previously:

    $ ./perl -w -c t/harness
    Possible precedence issue with control flow operator at t/harness line 498.
    t/harness syntax OK
  • Loading branch information
mauke committed Nov 22, 2023
1 parent 846cc44 commit a862c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/harness
Expand Up @@ -495,4 +495,4 @@ $h->callback(
my $agg = $h->runtests(@tests);
_cleanup_valgrind(\$htoolnm, \$hgrind_ct);
printf "Finished test run at %s.\n", scalar(localtime);
exit $agg->has_errors ? 1 : 0;
exit($agg->has_errors ? 1 : 0);

0 comments on commit a862c9a

Please sign in to comment.