summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/t/pragma/subs.t
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/perl5/t/pragma/subs.t')
-rwxr-xr-xcontrib/perl5/t/pragma/subs.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/perl5/t/pragma/subs.t b/contrib/perl5/t/pragma/subs.t
index 6ebbf78..fe84f5e 100755
--- a/contrib/perl5/t/pragma/subs.t
+++ b/contrib/perl5/t/pragma/subs.t
@@ -2,7 +2,7 @@
BEGIN {
chdir 't' if -d 't';
- @INC = '../lib';
+ unshift @INC, '../lib';
$ENV{PERL5LIB} = '../lib';
}
@@ -46,10 +46,10 @@ for (@prgs){
print TEST $prog,"\n";
close TEST;
my $results = $Is_VMS ?
- `MCR $^X $switch $tmpfile` :
+ `./perl $switch $tmpfile 2>&1` :
$Is_MSWin32 ?
`.\\perl -I../lib $switch $tmpfile 2>&1` :
- `sh -c './perl $switch $tmpfile' 2>&1`;
+ `./perl $switch $tmpfile 2>&1`;
my $status = $?;
$results =~ s/\n+$//;
# allow expected output to be written as if $prog is on STDIN
OpenPOWER on IntegriCloud