#!/usr/bin/perl -w
use strict;
-use lib 't/lib';
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ('../lib', 'lib');
+ }
+ else {
+ unshift @INC, 't/lib';
+ }
+}
use Test::Builder;
use Test::Builder::NoOutput;
# What if there's a plan and done_testing but they don't match?
use strict;
-use lib 't/lib';
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ('../lib', 'lib');
+ }
+ else {
+ unshift @INC, 't/lib';
+ }
+}
use Test::Builder;
use Test::Builder::NoOutput;
# Test what happens when no plan is delcared and done_testing() is not seen
use strict;
-use lib 't/lib';
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ('../lib', 'lib');
+ }
+ else {
+ unshift @INC, 't/lib';
+ }
+}
use Test::Builder;
use Test::Builder::NoOutput;