Fix use of "can_load()" in run_tests.pl.
authorRainer Jung <rainer.jung@kippdata.de>
Thu, 25 May 2017 21:58:14 +0000 (23:58 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 26 May 2017 09:26:23 +0000 (11:26 +0200)
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)
(cherry picked from commit 418bb7b31bb7cfca6e419a5aa7bf161784f61059)

test/run_tests.pl

index 148f2edc50384bf8a39abcf8ef422461efbdb755..61fdff639817b5ef0f10e87178348d75e0883df8 100644 (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};