From c1181aec6f2451492d3ece95dbb8f2563ebcc829 Mon Sep 17 00:00:00 2001 From: pmqs Date: Sun, 31 Mar 2019 19:18:28 +0100 Subject: [PATCH] Fix meta-json/yaml for Perl 5.6.0 --- t/meta-json.t | 8 ++++++++ t/meta-yaml.t | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/t/meta-json.t b/t/meta-json.t index 2505cf4..3d505cf 100644 --- a/t/meta-json.t +++ b/t/meta-json.t @@ -1,3 +1,11 @@ +BEGIN { + if ($ENV{PERL_CORE}) { + chdir 't' if -d 't'; + @INC = ("../lib", "lib/compress"); + } +} + +use lib qw(t t/compress); use Test::More; eval "use Test::CPAN::Meta::JSON"; plan skip_all => "Test::CPAN::Meta::JSON required for testing META.json" if $@; diff --git a/t/meta-yaml.t b/t/meta-yaml.t index e55b710..d0924aa 100644 --- a/t/meta-yaml.t +++ b/t/meta-yaml.t @@ -1,3 +1,11 @@ +BEGIN { + if ($ENV{PERL_CORE}) { + chdir 't' if -d 't'; + @INC = ("../lib", "lib/compress"); + } +} + +use lib qw(t t/compress); use Test::More; eval "use Test::CPAN::Meta"; plan skip_all => "Test::CPAN::Meta required for testing META.yml" if $@;