From: Craig A. Berry Date: Sat, 4 Jan 2003 11:26:00 +0000 (-0600) Subject: VMS test adjustments X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=143a3e5ef1446bbe436a43486e7681c31b0c8407;p=p5sagit%2Fp5-mst-13.2.git VMS test adjustments From: "Craig A. Berry" Message-ID: <3E171928.1040100@mac.com> p4raw-id: //depot/perl@18451 --- diff --git a/ext/Devel/Peek/Peek.t b/ext/Devel/Peek/Peek.t index 697ac4c..687dff0 100644 --- a/ext/Devel/Peek/Peek.t +++ b/ext/Devel/Peek/Peek.t @@ -433,8 +433,14 @@ do_test(21, MG_TYPE = PERL_MAGIC_envelem\\(e\\) (?: MG_FLAGS = 0x01 TAINTEDDIR -)? MG_LEN = 4 - MG_PTR = $ADDR "(?i:PATH)" +)? MG_LEN = -?\d+ + MG_PTR = $ADDR (?:"(?i:PATH)"|=> HEf_SVKEY + SV = PV\\($ADDR\\) at $ADDR + REFCNT = \d+ + FLAGS = \\(TEMP,POK,pPOK\\) + PV = $ADDR "(?i:PATH)"\\\0 + CUR = \d+ + LEN = \d+) MAGIC = $ADDR MG_VIRTUAL = &PL_vtbl_taint MG_TYPE = PERL_MAGIC_taint\\(t\\)'); diff --git a/ext/Filter/t/call.t b/ext/Filter/t/call.t index 0f9b452..8dd0955 100644 --- a/ext/Filter/t/call.t +++ b/ext/Filter/t/call.t @@ -806,10 +806,12 @@ EOM my $a = `$Perl "-I." $Inc -e "no ${module6}; print q{ok}"`; ok(29, ($? >>8) == 0); +chomp( $a ) if $^O eq 'VMS'; ok(30, $a eq 'ok'); $a = `$Perl "-I." $Inc $filename2`; ok(31, ($? >>8) == 0); +chomp( $a ) if $^O eq 'VMS'; ok(32, $a eq 'ok'); } diff --git a/lib/charnames.t b/lib/charnames.t index b2c1636..97663a7 100644 --- a/lib/charnames.t +++ b/lib/charnames.t @@ -6,6 +6,7 @@ BEGIN { unless(grep /blib/, @INC) { chdir 't' if -d 't'; @INC = '../lib'; + require './test.pl'; } $SIG{__WARN__} = sub { push @WARN, @_ }; } @@ -292,11 +293,9 @@ for (@prgs) { print $ali $fil; close $ali or die "Could not close $alifile: $!"; } - my $res = - $^O eq "MSWin32" ? `.\\perl -I../lib $switch $tmpfile 2>&1` : - $^O eq "NetWare" ? `perl -I../lib $switch $tmpfile 2>&1` : - $^O eq "MacOS" ? `$^X -I::lib -MMac::err=unix $switch $tmpfile` : - `./perl -I. -I../lib $switch $tmpfile 2>&1`; + my $res = runperl( switches => $switch, + progfile => $tmpfile, + stderr => 1 ); my $status = $?; $res =~ s/[\r\n]+$//; $res =~ s/tmp\d+/-/g; # fake $prog from STDIN diff --git a/t/run/switchI.t b/t/run/switchI.t index fa74b94..fcd2dc0 100644 --- a/t/run/switchI.t +++ b/t/run/switchI.t @@ -11,9 +11,15 @@ BEGIN { } ok(grep { $_ eq 'Bla' } @INC); -ok(grep { $_ eq 'Foo::Bar' } @INC); +SKIP: { + skip 'Double colons not allowed in dir spec', 1 if $^O eq 'VMS'; + ok(grep { $_ eq 'Foo::Bar' } @INC); +} fresh_perl_is('print grep { $_ eq "Bla2" } @INC', 'Bla2', { switches => ['-IBla2'] }, '-I'); -fresh_perl_is('print grep { $_ eq "Foo::Bar2" } @INC', 'Foo::Bar2', - { switches => ['-IFoo::Bar2'] }, '-I with colons'); +SKIP: { + skip 'Double colons not allowed in dir spec', 1 if $^O eq 'VMS'; + fresh_perl_is('print grep { $_ eq "Foo::Bar2" } @INC', 'Foo::Bar2', + { switches => ['-IFoo::Bar2'] }, '-I with colons'); +}