提交 c80bbcbf 编写于 作者: A Andy Polyakov

test/run_tests.pl: don't mask test failures.

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: NRich Salz <rsalz@openssl.org>
上级 e2c1aa1b
......@@ -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) = @_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册