This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
& what's to be done for 5.8.0?
[perl5.git] / t / op / my_stash.t
index 79f3f28..1e93fc7 100644 (file)
@@ -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__)) {