Make t/harness have non-zero exit if tests fail
David Golden [Fri, 2 Oct 2009 00:51:30 +0000 (20:51 -0400)]
t/harness

index d5099bf..88a7bfa 100644 (file)
--- a/t/harness
+++ b/t/harness
@@ -256,5 +256,5 @@ $h->callback(
             }
             );
 
-$h->runtests(@tests);
-exit(0);
+my $agg = $h->runtests(@tests);
+exit $agg->has_errors ? 1 : 0;