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\\)');
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');
}
unless(grep /blib/, @INC) {
chdir 't' if -d 't';
@INC = '../lib';
+ require './test.pl';
}
$SIG{__WARN__} = sub { push @WARN, @_ };
}
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
}
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');
+}