diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-09-10 11:59:09 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-09-10 11:59:09 +0100 |
commit | 4aa37fafef47f0609c457610076d77d6e96c8803 (patch) | |
tree | fb82a4496578d4fa4e18cf5ce3babe9ea1764963 /dist/Math-BigInt/t/bare_mbf.t | |
parent | e08c10f564aa3fa8386b88ad67ae3346d1b98787 (diff) | |
download | perl-4aa37fafef47f0609c457610076d77d6e96c8803.tar.gz |
Remove obsolete core test directory boilerplate from Math::BigInt.
This was only needed for testing in the core, when the core's tests all ran
the top level t/ directory. Without this getting in the way, we don't need
t/TEST and t/harness to run the tests with absolute paths in @INC. Testing in
the CPAN distribution is unaffected.
Diffstat (limited to 'dist/Math-BigInt/t/bare_mbf.t')
-rw-r--r-- | dist/Math-BigInt/t/bare_mbf.t | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/dist/Math-BigInt/t/bare_mbf.t b/dist/Math-BigInt/t/bare_mbf.t index d5c186045c..96e041a4c7 100644 --- a/dist/Math-BigInt/t/bare_mbf.t +++ b/dist/Math-BigInt/t/bare_mbf.t @@ -5,23 +5,7 @@ use strict; BEGIN { - $| = 1; - # to locate the testing files - my $location = $0; $location =~ s/bare_mbf.t//i; - print "# $0\n"; - unshift @INC, '../lib'; - 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"; - + unshift @INC, 't'; plan tests => 2316; } @@ -31,4 +15,4 @@ use vars qw ($class $try $x $y $f @args $ans $ans1 $ans1_str $setup $CL); $class = "Math::BigFloat"; $CL = "Math::BigInt::BareCalc"; -require 'bigfltpm.inc'; # all tests here for sharing +require 't/bigfltpm.inc'; # all tests here for sharing |