summaryrefslogtreecommitdiff
path: root/t/pod
diff options
context:
space:
mode:
authorCharles Lane <lane@DUPHY4.Physics.Drexel.Edu>2000-10-12 03:30:02 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2000-10-12 23:41:19 +0000
commitb3f1cdc4ae0bcb1039055376f5e66693299db1c4 (patch)
treece0330742726e1853298a07664dc2e3713400e22 /t/pod
parentb09cbcde64a6ef8125e745f0cafbf9866e85db0b (diff)
downloadperl-b3f1cdc4ae0bcb1039055376f5e66693299db1c4.tar.gz
5.6.0 & 5.7.1, VMS fixes
Message-Id: <001012072828.2eabc@DUPHY4.Physics.Drexel.Edu> p4raw-id: //depot/perl@7208
Diffstat (limited to 't/pod')
-rw-r--r--t/pod/find.t7
-rw-r--r--t/pod/testp2pt.pl8
2 files changed, 11 insertions, 4 deletions
diff --git a/t/pod/find.t b/t/pod/find.t
index e0ab63ef68..f5d4c526b9 100644
--- a/t/pod/find.t
+++ b/t/pod/find.t
@@ -24,7 +24,7 @@ if ($^O eq 'VMS') {
}
print "### searching $lib_dir\n";
my %pods = pod_find("$lib_dir");
-my $result = join(',', sort values %pods);
+my $result = join("\n### ", sort values %pods);
print "### found $result\n";
my $compare = join(',', qw(
Pod::Checker
@@ -39,7 +39,10 @@ my $compare = join(',', qw(
if ($^O eq 'VMS') {
$compare = lc($compare);
$result = join(',', sort grep(/pod::/, values %pods));
- $result =~ s/$Qlib_dir/pod::/g;
+ my $undollared = $Qlib_dir;
+ $undollared =~ s/\$/\\\$/g;
+ $undollared =~ s/\-/\\\-/g;
+ $result =~ s/$undollared/pod::/g;
my $count = 0;
my @result = split(/,/,$result);
my @compare = split(/,/,$compare);
diff --git a/t/pod/testp2pt.pl b/t/pod/testp2pt.pl
index 91a20eeeec..8cfdbb9386 100644
--- a/t/pod/testp2pt.pl
+++ b/t/pod/testp2pt.pl
@@ -42,8 +42,11 @@ BEGIN {
sub catfile(@) { File::Spec->catfile(@_); }
my $INSTDIR = abs_path(dirname $0);
-$INSTDIR = VMS::Filespec::unixpath($INSTDIR) if $^O eq 'VMS';
-$INSTDIR =~ s#/$## if $^O eq 'VMS';
+if ($^O eq 'VMS') { # clean up directory spec
+ $INSTDIR = VMS::Filespec::unixpath($INSTDIR);
+ $INSTDIR =~ s#/$##;
+ $INSTDIR =~ s#/000000/#/#;
+}
$INSTDIR = (dirname $INSTDIR) if (basename($INSTDIR) eq 'pod');
$INSTDIR = (dirname $INSTDIR) if (basename($INSTDIR) eq 't');
my @PODINCDIRS = ( catfile($INSTDIR, 'lib', 'Pod'),
@@ -51,6 +54,7 @@ my @PODINCDIRS = ( catfile($INSTDIR, 'lib', 'Pod'),
catfile($INSTDIR, 'pod'),
catfile($INSTDIR, 't', 'pod')
);
+print "PODINCDIRS = ",join(', ',@PODINCDIRS),"\n";
## Find the path to the file to =include
sub findinclude {