summaryrefslogtreecommitdiff
path: root/test/run_tests.pl
diff options
context:
space:
mode:
Diffstat (limited to 'test/run_tests.pl')
-rw-r--r--test/run_tests.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/run_tests.pl b/test/run_tests.pl
index aa1dba0242..a04fd98a0a 100644
--- a/test/run_tests.pl
+++ b/test/run_tests.pl
@@ -82,7 +82,10 @@ foreach my $arg (@ARGV ? @ARGV : ('alltests')) {
}
my $harness = $TAP_Harness->new(\%tapargs);
-$harness->runtests(map { abs2rel($_, rel2abs(curdir())); } sort keys %tests);
+my $ret = $harness->runtests(map { abs2rel($_, rel2abs(curdir())); }
+ sort keys %tests);
+
+exit $ret->has_errors if (ref($ret) eq "TAP::Parser::Aggregator");
sub find_matching_tests {
my ($glob) = @_;