Skip to content

Commit

Permalink
harness now exits with non-zero status on failure. This makes the san…
Browse files Browse the repository at this point in the history
…ity test chaining do the right thing
  • Loading branch information
Whiteknight committed Dec 6, 2009
1 parent 4c9c5dc commit c8a29fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion t/harness
Expand Up @@ -79,7 +79,10 @@ sub MAIN () {
}
}
if $total_failed {
say("FAILED " ~ $total_failed ~ '/' ~ ($total_passed+$total_failed));
say("FAILED " ~ $total_failed ~ '/' ~ ($total_passed+$total_failed));
Q:PIR {
exit 1
}
} elsif $failed_files {
say("FAILED " ~ $failed_files ~ " files, PASSED " ~ $total_passed ~ ' tests');
} else {
Expand Down

0 comments on commit c8a29fd

Please sign in to comment.