1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
|
From 99ccc3b9363483ae9648ec857a896555af0ecf11 Mon Sep 17 00:00:00 2001
From: James E Keenan <jkeenan@cpan.org>
Date: Sun, 2 Apr 2017 19:48:33 -0400
Subject: [PATCH] perl-5.26.0 compatibility
In Perl 5.26.0, '.' will no longer be found by default in @INC. This patch
adjusts test files so that 't::*' modules used in tests are properly located.
For: https://github.com/plack/Plack-Middleware-Session/issues/36
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871798
diff --git a/t/001_basic.t b/t/001_basic.t
index 1be9517..1a7e068 100755
--- a/t/001_basic.t
+++ b/t/001_basic.t
@@ -10,6 +10,7 @@ use Plack::Session;
use Plack::Session::State;
use Plack::Session::Store;
+use lib ".";
use t::lib::TestSession;
t::lib::TestSession::run_all_tests(
diff --git a/t/001a_basic.t b/t/001a_basic.t
index fb0109d..0e5bed9 100644
--- a/t/001a_basic.t
+++ b/t/001a_basic.t
@@ -9,6 +9,7 @@ use Plack::Request;
use Plack::Session::State;
use Plack::Session::Store;
+use lib ".";
use t::lib::TestSessionHash;
t::lib::TestSessionHash::run_all_tests(
diff --git a/t/002_basic_w_cookie.t b/t/002_basic_w_cookie.t
index b7f29e2..056908d 100755
--- a/t/002_basic_w_cookie.t
+++ b/t/002_basic_w_cookie.t
@@ -11,6 +11,7 @@ use Plack::Session::State::Cookie;
use Plack::Session::Store;
use Plack::Util;
+use lib ".";
use t::lib::TestSession;
t::lib::TestSession::run_all_tests(
diff --git a/t/002a_basic_w_cookie.t b/t/002a_basic_w_cookie.t
index a16016e..6826464 100644
--- a/t/002a_basic_w_cookie.t
+++ b/t/002a_basic_w_cookie.t
@@ -10,6 +10,7 @@ use Plack::Session::State::Cookie;
use Plack::Session::Store;
use Plack::Util;
+use lib ".";
use t::lib::TestSessionHash;
t::lib::TestSessionHash::run_all_tests(
diff --git a/t/003_basic_w_file_store.t b/t/003_basic_w_file_store.t
index 0f104f1..ab306fa 100755
--- a/t/003_basic_w_file_store.t
+++ b/t/003_basic_w_file_store.t
@@ -12,6 +12,7 @@ use Plack::Session;
use Plack::Session::State::Cookie;
use Plack::Session::Store::File;
+use lib ".";
use t::lib::TestSession;
my $tmp = tempdir(CLEANUP => 1);
diff --git a/t/003a_basic_w_file_store.t b/t/003a_basic_w_file_store.t
index 7a21196..047a40f 100755
--- a/t/003a_basic_w_file_store.t
+++ b/t/003a_basic_w_file_store.t
@@ -11,6 +11,7 @@ use Plack::Request;
use Plack::Session::State::Cookie;
use Plack::Session::Store::File;
+use lib ".";
use t::lib::TestSessionHash;
my $tmp = tempdir(CLEANUP => 1);
diff --git a/t/004_basic_file_w_customs.t b/t/004_basic_file_w_customs.t
index 9dea950..571aa0f 100755
--- a/t/004_basic_file_w_customs.t
+++ b/t/004_basic_file_w_customs.t
@@ -13,6 +13,7 @@ use Plack::Session;
use Plack::Session::State::Cookie;
use Plack::Session::Store::File;
+use lib ".";
use t::lib::TestSession;
my $tmp = tempdir(CLEANUP => 1);
diff --git a/t/004a_basic_file_w_customs.t b/t/004a_basic_file_w_customs.t
index f1b727e..0e0b3a2 100755
--- a/t/004a_basic_file_w_customs.t
+++ b/t/004a_basic_file_w_customs.t
@@ -12,6 +12,7 @@ use Plack::Request;
use Plack::Session::State::Cookie;
use Plack::Session::Store::File;
+use lib ".";
use t::lib::TestSessionHash;
my $tmp = tempdir(CLEANUP => 1);
diff --git a/t/005_basic_w_cache_store.t b/t/005_basic_w_cache_store.t
index 3cb9b24..4065474 100755
--- a/t/005_basic_w_cache_store.t
+++ b/t/005_basic_w_cache_store.t
@@ -10,6 +10,7 @@ use Plack::Session;
use Plack::Session::State;
use Plack::Session::Store::Cache;
+use lib ".";
use t::lib::TestSession;
{
diff --git a/t/005a_basic_w_cache_store.t b/t/005a_basic_w_cache_store.t
index 04b9f7c..355ec1b 100644
--- a/t/005a_basic_w_cache_store.t
+++ b/t/005a_basic_w_cache_store.t
@@ -9,6 +9,7 @@ use Plack::Request;
use Plack::Session::State;
use Plack::Session::Store::Cache;
+use lib ".";
use t::lib::TestSessionHash;
{
diff --git a/t/006_basic_w_dbi_store.t b/t/006_basic_w_dbi_store.t
index 2b7b03d..da2047a 100644
--- a/t/006_basic_w_dbi_store.t
+++ b/t/006_basic_w_dbi_store.t
@@ -13,6 +13,7 @@ use Plack::Session;
use Plack::Session::State::Cookie;
use Plack::Session::Store::DBI;
+use lib ".";
use t::lib::TestSession;
my $tmp = tempdir(CLEANUP => 1);
|