From 0efb6d94cdc3bc10a30206b95c0621f399e0cc79 Mon Sep 17 00:00:00 2001 From: Rainer Jung Date: Thu, 25 May 2017 23:58:14 +0200 Subject: [PATCH] Fix use of "can_load()" in run_tests.pl. CLA: Trivial Fixes #3563. Reviewed-by: Andy Polyakov Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/3564) (cherry picked from commit 418bb7b31bb7cfca6e419a5aa7bf161784f61059) --- test/run_tests.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/run_tests.pl b/test/run_tests.pl index 148f2edc50..61fdff6398 100644 --- a/test/run_tests.pl +++ b/test/run_tests.pl @@ -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}; -- 2.25.1