Fix use of "can_load()" in run_tests.pl.

CLA: Trivial

Fixes #3563.

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3564)
This commit is contained in:
Rainer Jung 2017-05-25 23:58:14 +02:00 committed by Richard Levitte
parent e3d378bcf1
commit 418bb7b31b

View file

@ -19,7 +19,7 @@ use File::Basename;
use if $^O ne "VMS", 'File::Glob' => qw/glob/;
use Module::Load::Conditional qw(can_load);
my $TAP_Harness = can_load({modules => [ 'TAP::Harness' ]})
my $TAP_Harness = can_load(modules => { 'TAP::Harness' => undef })
? 'TAP::Harness' : 'OpenSSL::TAP::Harness';
my $srctop = $ENV{SRCTOP} || $ENV{TOP};