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);
