summaryrefslogtreecommitdiff
path: root/t/harness
diff options
context:
space:
mode:
authorDavid Golden <dagolden@cpan.org>2009-10-01 20:51:30 -0400
committerDavid Golden <dagolden@cpan.org>2009-10-01 20:51:30 -0400
commitf483babb422bfc83607d05f841bedb2e7366ed9a (patch)
treebe9a3c56cfcc220e2d83072d9a56e38f05ebce19 /t/harness
parent19c8b1959f8e62550ec7e54c8a12efbf034555a3 (diff)
downloadperl-f483babb422bfc83607d05f841bedb2e7366ed9a.tar.gz
Make t/harness have non-zero exit if tests fail
Diffstat (limited to 't/harness')
-rw-r--r--t/harness4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/harness b/t/harness
index d5099bfe6f..88a7bfad78 100644
--- 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;