Switch to TAP::Harness inadvertently masked test failures.
Test::Harness::runtests was terminating with non-zero exit code in case
of failure[s], while TAP::Harness apparently holds caller responsible
for doing so.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
@tests = map { abs2rel($_, rel2abs(curdir())); } @tests;
my $harness = $TAP_Harness->new(\%tapargs);
- $harness->runtests(sort @tests);
+ my $ret = $harness->runtests(sort @tests);
+
+ exit $ret->has_errors if (ref($ret) eq "TAP::Parser::Aggregator");
}