From: Karen Etheridge Date: Thu, 28 Jul 2016 20:13:03 +0000 (-0700) Subject: avoid relying on . being in @INC X-Git-Tag: v0.006019~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-Declare.git;a=commitdiff_plain;h=302fad19903e918c43fdbe5f38d5052251574247 avoid relying on . being in @INC --- diff --git a/t/early1.t b/t/early1.t index 7bd08c4..bf4bda7 100644 --- a/t/early1.t +++ b/t/early1.t @@ -1,5 +1,6 @@ use strict; use warnings; use Test::More tests => 1; -use t::early1_x; +use lib 't'; +use early1_x; class {}; diff --git a/t/early1_x.pm b/t/early1_x.pm index 12fb55f..5aea017 100644 --- a/t/early1_x.pm +++ b/t/early1_x.pm @@ -1,4 +1,4 @@ -package t::early1_x; +package early1_x; use strict; use warnings; sub import {