From 2ee3659062bf96f8360292c38738a517a802f11e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 26 Jun 2017 04:34:13 +0000 Subject: [PATCH] tests: deal with the removal of '.' from @INC in newer Perl Oops, this is needed for Perl 5.22 (tested 5.24.1) since '.' was removed due to security problems. Fwiw, I consider this change to Perl an overreaction and do not agree with it. --- t/feed.t | 2 +- t/plack.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/t/feed.t b/t/feed.t index b60273ed..7e1596b1 100644 --- a/t/feed.t +++ b/t/feed.t @@ -11,7 +11,7 @@ use PublicInbox::Config; use PublicInbox::Inbox; use File::Temp qw/tempdir/; my $have_xml_feed = eval { require XML::Feed; 1 }; -require 't/common.perl'; +require './t/common.perl'; sub string_feed { stream_to_string(PublicInbox::Feed::generate($_[0])); diff --git a/t/plack.t b/t/plack.t index 1d624589..e5780644 100644 --- a/t/plack.t +++ b/t/plack.t @@ -5,7 +5,7 @@ use warnings; use Test::More; use Email::MIME; use File::Temp qw/tempdir/; -my $psgi = "examples/public-inbox.psgi"; +my $psgi = "./examples/public-inbox.psgi"; my $tmpdir = tempdir('pi-plack-XXXXXX', TMPDIR => 1, CLEANUP => 1); my $pi_config = "$tmpdir/config"; my $maindir = "$tmpdir/main.git"; -- 2.44.0