summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/lib/ExtUtils/t
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2009-10-12 18:24:18 +0000
committermillert <millert@openbsd.org>2009-10-12 18:24:18 +0000
commitdf042708019d82f10a844f81545b8510eb33a43b (patch)
treef1aa8a2977492c1084da8a9a42ad99fe382fba66 /gnu/usr.bin/perl/lib/ExtUtils/t
parentto support virtual domains properly, smtpd needed to have the domain stored (diff)
downloadwireguard-openbsd-df042708019d82f10a844f81545b8510eb33a43b.tar.xz
wireguard-openbsd-df042708019d82f10a844f81545b8510eb33a43b.zip
Merge in perl 5.10.1
Diffstat (limited to 'gnu/usr.bin/perl/lib/ExtUtils/t')
-rw-r--r--gnu/usr.bin/perl/lib/ExtUtils/t/bytes.t30
-rwxr-xr-xgnu/usr.bin/perl/lib/ExtUtils/t/parse_version.t14
-rw-r--r--gnu/usr.bin/perl/lib/ExtUtils/t/vmsish.t17
3 files changed, 13 insertions, 48 deletions
diff --git a/gnu/usr.bin/perl/lib/ExtUtils/t/bytes.t b/gnu/usr.bin/perl/lib/ExtUtils/t/bytes.t
deleted file mode 100644
index e566831cc21..00000000000
--- a/gnu/usr.bin/perl/lib/ExtUtils/t/bytes.t
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/perl -w
-
-BEGIN {
- if( $ENV{PERL_CORE} ) {
- chdir 't' if -d 't';
- @INC = ('../lib', 'lib');
- }
- else {
- unshift @INC, 't/lib';
- }
-}
-
-use strict;
-use Test::More tests => 4;
-
-use_ok('ExtUtils::MakeMaker::bytes');
-
-SKIP: {
- skip "bytes.pm appeared in 5.6", 3 if $] < 5.006;
-
- my $chr = chr(400);
- is( length $chr, 1 );
-
- {
- use ExtUtils::MakeMaker::bytes;
- is( length $chr, 2, 'byte.pm in effect' );
- }
-
- is( length $chr, 1, ' score is lexical' );
-}
diff --git a/gnu/usr.bin/perl/lib/ExtUtils/t/parse_version.t b/gnu/usr.bin/perl/lib/ExtUtils/t/parse_version.t
index b56a02b2850..25769cb2e09 100755
--- a/gnu/usr.bin/perl/lib/ExtUtils/t/parse_version.t
+++ b/gnu/usr.bin/perl/lib/ExtUtils/t/parse_version.t
@@ -18,7 +18,7 @@ my $Has_Version = eval 'require version; "version"->import; 1';
my %versions = (q[$VERSION = '1.00'] => '1.00',
q[*VERSION = \'1.01'] => '1.01',
- q[($VERSION) = q/Revision: 32208 / =~ /(\d+)/g;] => 32208,
+ q[($VERSION) = q$Revision: 1.4 $ =~ /(\d+)/g;] => 32208,
q[$FOO::VERSION = '1.10';] => '1.10',
q[*FOO::VERSION = \'1.11';] => '1.11',
'$VERSION = 0.02' => 0.02,
@@ -29,7 +29,19 @@ my %versions = (q[$VERSION = '1.00'] => '1.00',
q[my $VERSION = '1.01'] => 'undef',
q[local $VERISON = '1.02'] => 'undef',
q[local $FOO::VERSION = '1.30'] => 'undef',
+ q[if( $Foo::VERSION >= 3.00 ) {]=> 'undef',
q[our $VERSION = '1.23';] => '1.23',
+
+ '$Something::VERSION == 1.0' => 'undef',
+ '$Something::VERSION <= 1.0' => 'undef',
+ '$Something::VERSION >= 1.0' => 'undef',
+ '$Something::VERSION != 1.0' => 'undef',
+
+ qq[\$Something::VERSION == 1.0\n\$VERSION = 2.3\n] => '2.3',
+ qq[\$Something::VERSION == 1.0\n\$VERSION = 2.3\n\$VERSION = 4.5\n] => '2.3',
+
+ '$VERSION = sprintf("%d.%03d", q$Revision: 1.4 $ =~ /(\d+)\.(\d+)/);' => '3.074',
+ '$VERSION = substr(q$Revision: 1.4 $, 10) + 2 . "";' => '4.8',
);
if( $Has_Version ) {
diff --git a/gnu/usr.bin/perl/lib/ExtUtils/t/vmsish.t b/gnu/usr.bin/perl/lib/ExtUtils/t/vmsish.t
deleted file mode 100644
index 6195a0d5c11..00000000000
--- a/gnu/usr.bin/perl/lib/ExtUtils/t/vmsish.t
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/perl -w
-
-BEGIN {
- if( $ENV{PERL_CORE} ) {
- chdir 't' if -d 't';
- @INC = ('../lib', 'lib');
- }
- else {
- unshift @INC, 't/lib';
- }
-}
-
-use strict;
-use Test::More tests => 1;
-
-use_ok('ExtUtils::MakeMaker::vmsish');
-