X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMath%2FBigInt%2Ft%2Fbigints.t;h=e7972fb78eeff71ac86266dd5f418b06ce65ec72;hb=990fb837ac6356023668c709e35770d2e63ec006;hp=fb9b2f49f6a85e7c1b35a7ab3c3738ee6bb832bf;hpb=2a30c5e0c7700acf7c1205bda81f1853b9257109;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/Math/BigInt/t/bigints.t b/lib/Math/BigInt/t/bigints.t index fb9b2f4..e7972fb 100644 --- a/lib/Math/BigInt/t/bigints.t +++ b/lib/Math/BigInt/t/bigints.t @@ -6,8 +6,25 @@ use Test; BEGIN { $| = 1; - # chdir 't' if -d 't'; - unshift @INC, '../lib'; # for running manually + # to locate the testing files + my $location = $0; $location =~ s/bigints.t//i; + if ($ENV{PERL_CORE}) + { + @INC = qw(../t/lib); # testing with the core distribution + } + unshift @INC, '../lib'; # for testing manually + if (-d 't') + { + chdir 't'; + require File::Spec; + unshift @INC, File::Spec->catdir(File::Spec->updir, $location); + } + else + { + unshift @INC, $location; + } + print "# INC = @INC\n"; + plan tests => 51; }