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/sub_ali.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/sub_ali.t')
-rw-r--r-- | dist/Math-BigInt/t/sub_ali.t | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/dist/Math-BigInt/t/sub_ali.t b/dist/Math-BigInt/t/sub_ali.t index d6c17530f8..04512abd6c 100644 --- a/dist/Math-BigInt/t/sub_ali.t +++ b/dist/Math-BigInt/t/sub_ali.t @@ -2,34 +2,14 @@ # test that the new alias names work -use Test::More; use strict; +use Test::More tests => 6; -BEGIN - { - $| = 1; - # to locate the testing files - my $location = $0; $location =~ s/sub_ali.t//i; - unshift @INC, qw(../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"; - - plan tests => 6; - } +BEGIN { unshift @INC, 't'; } use Math::BigInt::Subclass; use vars qw/$CL $x/; $CL = 'Math::BigInt::Subclass'; -require 'alias.inc'; - +require 't/alias.inc'; |