summaryrefslogtreecommitdiff
path: root/lib/Math/BigInt/t/use_lib2.t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-26 19:54:48 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-26 19:54:48 +0000
commit8f675a64451b3c11c234adeda6be313fb8d03f6c (patch)
tree701fd72b4f0ed95c891264108a1b9fc231f2674b /lib/Math/BigInt/t/use_lib2.t
parent2c45f8e1be053d3d2fa453b2278c7225f1689f9c (diff)
downloadperl-8f675a64451b3c11c234adeda6be313fb8d03f6c.tar.gz
Upgrade to Math::BigInt 1.56, Math::BigRat 0.05,
and bignum 0.11, from Tels. p4raw-id: //depot/perl@15523
Diffstat (limited to 'lib/Math/BigInt/t/use_lib2.t')
-rw-r--r--lib/Math/BigInt/t/use_lib2.t23
1 files changed, 20 insertions, 3 deletions
diff --git a/lib/Math/BigInt/t/use_lib2.t b/lib/Math/BigInt/t/use_lib2.t
index 6dd744f298..aa4ba5fbe2 100644
--- a/lib/Math/BigInt/t/use_lib2.t
+++ b/lib/Math/BigInt/t/use_lib2.t
@@ -9,9 +9,26 @@ use Test;
BEGIN
{
$| = 1;
- chdir 't' if -d 't';
- unshift @INC, '../lib'; # for running manually
- unshift @INC, 'lib';
+ # to locate the testing files
+ my $location = $0; $location =~ s/use_lib2.t//i;
+ if ($ENV{PERL_CORE})
+ {
+ # testing with the core distribution
+ @INC = qw(../t/lib);
+ }
+ unshift @INC, qw(../lib); # to locate the modules
+ 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 => 2;
}