X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fop%2Fmy_stash.t;h=1e93fc7c633cf1542ac5301d046ef66f81dfc20a;hb=a1824f2aba8e109cac73756dc271522cdd4a8200;hp=79f3f28a08be5dca2e597f79eb33d7cb79098325;hpb=036b4402dc24284de44ae733b52896d6fd4fbb77;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/op/my_stash.t b/t/op/my_stash.t index 79f3f28..1e93fc7 100644 --- a/t/op/my_stash.t +++ b/t/op/my_stash.t @@ -3,7 +3,8 @@ package Foo; BEGIN { - unshift @INC, "../lib"; + chdir 't' if -d 't'; + @INC = '../lib'; } use Test; @@ -14,6 +15,7 @@ use constant MyClass => 'Foo::Bar::Biz::Baz'; { package Foo::Bar::Biz::Baz; + 1; } for (qw(Foo Foo:: MyClass __PACKAGE__)) {