Commit 26810b5e authored by Andy Polyakov's avatar Andy Polyakov
Browse files

test/run_tests.pl: don't use Module::Load::Conditional.



Ironically enough not all installations get Module::Load::Conditional
installed by default... [It's a bit half-hearted, because such
installations are likely to lack more stuffi that is needed, but
nevertheless, it proved to be helpful.]

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4323)
parent b3696a55
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -19,10 +19,9 @@ use File::Basename;
use FindBin;
use lib "$FindBin::Bin/../util/perl";
use OpenSSL::Glob;
use Module::Load::Conditional qw(can_load);

my $TAP_Harness = can_load(modules => { 'TAP::Harness' => undef }) 
    ? 'TAP::Harness' : 'OpenSSL::TAP::Harness';
my $TAP_Harness = eval { require TAP::Harness } ? "TAP::Harness"
                                                : "OpenSSL::TAP::Harness";

my $srctop = $ENV{SRCTOP} || $ENV{TOP};
my $bldtop = $ENV{BLDTOP} || $ENV{TOP};