diff options
author | Charles Bailey <bailey@newman.upenn.edu> | 2000-02-28 02:57:14 +0000 |
---|---|---|
committer | bailey <bailey@newman.upenn.edu> | 2000-02-28 02:57:14 +0000 |
commit | b39cdb36c806b384ddc21ca48818296c9ba21ff0 (patch) | |
tree | cd7363ca1389472c57096d7cbb949d2bbca76901 | |
parent | 80601f726a5a19bcf2b74279a3d4464723c257cb (diff) | |
download | perl-b39cdb36c806b384ddc21ca48818296c9ba21ff0.tar.gz |
Minor test updates to accomodate new subprocess invocation
p4raw-id: //depot/vmsperl@5304
-rwxr-xr-x | t/comp/script.t | 3 | ||||
-rwxr-xr-x | t/op/goto.t | 4 | ||||
-rwxr-xr-x | t/op/split.t | 4 |
3 files changed, 3 insertions, 8 deletions
diff --git a/t/comp/script.t b/t/comp/script.t index d0c12e9552..a9bc47d3f2 100755 --- a/t/comp/script.t +++ b/t/comp/script.t @@ -6,7 +6,6 @@ print "1..3\n"; $PERL = ($^O eq 'MSWin32') ? '.\perl' : './perl'; $x = `$PERL -le "print 'ok';"`; -if ($x =~ /DCL-W-NOCOMD/) { $x = `\$ mcr sys\$disk:[]perl. -e "print ""ok\n""";`; } if ($x eq "ok\n") {print "ok 1\n";} else {print "not ok 1\n";} @@ -15,12 +14,10 @@ print try 'print "ok\n";'; print try "\n"; close try; $x = `$PERL Comp.script`; -if ($x =~ /DCL-W-NOCOMD/) { $x = `\$ mcr sys\$disk:[]perl. Comp.script`; } if ($x eq "ok\n") {print "ok 2\n";} else {print "not ok 2\n";} $x = `$PERL <Comp.script`; -if ($x =~ /DCL-W-NOCOMD/) { $x = `\$ mcr sys\$disk:[]perl. <Comp.script`; } if ($x eq "ok\n") {print "ok 3\n";} else {print "not ok 3\n";} diff --git a/t/op/goto.t b/t/op/goto.t index 7a5de5fea5..73fc79af32 100755 --- a/t/op/goto.t +++ b/t/op/goto.t @@ -30,8 +30,8 @@ print "#2\t:$foo: == 4\n"; if ($foo == 4) {print "ok 2\n";} else {print "not ok 2\n";} $PERL = ($^O eq 'MSWin32') ? '.\perl' : './perl'; -$x = `$PERL -e "goto foo;" 2>&1`; -if ($x =~ /DCL-W-NOCOMD/) { $x = `\$ mcr sys\$disk:[]perl. -e "goto foo;"`; } +$CMD = qq[$PERL -e "goto foo;" ] . ($^O eq 'VMS' ? '' : ' 2>&1'); +$x = `$CMD`; if ($x =~ /label/) {print "ok 3\n";} else {print "not ok 3\n";} diff --git a/t/op/split.t b/t/op/split.t index 042f151f33..48e64e117d 100755 --- a/t/op/split.t +++ b/t/op/split.t @@ -48,10 +48,8 @@ print $_ eq '1:2:3:4:5:6:::' ? "ok 10\n" : "not ok 10 $_\n"; # Does assignment to a list imply split to one more field than that? if ($^O eq 'MSWin32') { $foo = `.\\perl -D1024 -e "(\$a,\$b) = split;" 2>&1` } +elsif ($^O eq 'VMS') { $foo = `./perl "-D1024" -e "(\$a,\$b) = split;"` } else { $foo = `./perl -D1024 -e '(\$a,\$b) = split;' 2>&1` } -if ($foo =~ /DCL-W-NOCOMD/) { - $foo = `\$ mcr sys\$disk:[]perl. "-D1024" -e "(\$a,\$b) = split;"`; -} print $foo =~ /DEBUGGING/ || $foo =~ /SV = (VOID|IV\(3\))/ ? "ok 11\n" : "not ok 11\n"; # Can we say how many fields to split to when assigning to a list? |