diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-09-26 15:09:05 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-09-26 17:51:13 +0100 |
commit | e41cfb922e9f5e5fe67bebd36742e255a7813fc3 (patch) | |
tree | 8a74ffd01d1cc3dbbbc37c725e595dfe0bb45cf2 /t/TEST | |
parent | 5e10c9c5b8973e8fad98b33f0e8b77d401c75e72 (diff) | |
download | perl-e41cfb922e9f5e5fe67bebd36742e255a7813fc3.tar.gz |
Tests in cpan/ should run from their directory, as tests in ext/ already do.
Diffstat (limited to 't/TEST')
-rwxr-xr-x | t/TEST | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -34,9 +34,9 @@ my %temp_no_core = '../ext/Compress-Raw-Bzip2' => 1, '../ext/Compress-Raw-Zlib' => 1, '../ext/Devel-PPPort' => 1, - '../ext/Getopt-Long' => 1, + '../cpan/Getopt-Long' => 1, '../ext/IO-Compress' => 1, - '../ext/IPC-SysV' => 1, + '../cpan/IPC-SysV' => 1, '../ext/Math-BigInt' => 1, '../ext/Math-BigRat' => 1, '../ext/MIME-Base64' => 1, @@ -194,7 +194,7 @@ sub _scan_test { my $dir = $1; my $testswitch = $dir_to_switch{$dir}; if (!defined $testswitch) { - if ($test =~ s!^(\.\./ext/[^/]+)/t!t!) { + if ($test =~ s!^(\.\./(?:cpan|ext)/[^/]+)/t!t!) { $run_dir = $1; $return_dir = '../../t'; $lib = '../../lib'; @@ -345,7 +345,7 @@ sub _tests_from_manifest { my $mani = '../MANIFEST'; if (open(MANI, $mani)) { while (<MANI>) { - if (m!^(ext/(\S+)/+(?:[^/\s]+\.t|test\.pl)|lib/\S+?(?:\.t|test\.pl))\s!) { + if (m!^((?:cpan|ext)/(\S+)/+(?:[^/\s]+\.t|test\.pl)|lib/\S+?(?:\.t|test\.pl))\s!) { my $t = $1; my $extension = $2; if (!$::core || $t =~ m!^lib/[a-z]!) { |