]> Sergey Matveev's repositories - public-inbox.git/commitdiff
tests: deal with the removal of '.' from @INC in newer Perl
authorEric Wong <e@80x24.org>
Mon, 26 Jun 2017 04:34:13 +0000 (04:34 +0000)
committerEric Wong <e@80x24.org>
Mon, 26 Jun 2017 17:30:11 +0000 (17:30 +0000)
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
t/plack.t

index b60273ed53b313112f9ad175659a2936c3c454dd..7e1596b1cb153f4de322e23c94bc48941ddac4fd 100644 (file)
--- 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]));
index 1d624589e810f63b24f927efb616aaa32da9c3ee..e578064438b4d064552b9d0a66ca037cbec101cc 100644 (file)
--- 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";