X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fpragma%2Fwarnings.t;h=09b41fbd64a0c1587ccbfd87066c1383e70df66c;hb=d780cd7a0195e946e636d3ee546f6ef4f21d6acc;hp=872e6e141752c304036b21c3d4442f124f9e7577;hpb=0e06870bf080a38cda51c06c6612359afc2334e1;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/pragma/warnings.t b/t/pragma/warnings.t index 872e6e1..09b41fb 100644 --- a/t/pragma/warnings.t +++ b/t/pragma/warnings.t @@ -5,13 +5,13 @@ BEGIN { @INC = '../lib'; $ENV{PERL5LIB} = '../lib'; require Config; import Config; - $ENV{PERL_DESTRUCT_LEVEL} = 0 unless $ENV{PERL_DESTRUCT_LEVEL} > 3; } $| = 1; my $Is_VMS = $^O eq 'VMS'; my $Is_MSWin32 = $^O eq 'MSWin32'; +my $Is_NetWare = $^O eq 'NetWare'; my $tmpfile = "tmp0000"; my $i = 0 ; 1 while -f ++$tmpfile; @@ -28,7 +28,7 @@ else my $files = 0; foreach my $file (@w_files) { - next if /(~|\.orig|,v)$/; + next if $file =~ /(~|\.orig|,v)$/; open F, "<$file" or die "Cannot open $file: $!\n" ; my $line = 0; @@ -87,6 +87,8 @@ for (@prgs){ `./perl "-I../lib" $switch $tmpfile 2>&1` : $Is_MSWin32 ? `.\\perl -I../lib $switch $tmpfile 2>&1` : + $Is_NetWare ? + `perl -I../lib $switch $tmpfile 2>&1` : `./perl -I../lib $switch $tmpfile 2>&1`; my $status = $?; $results =~ s/\n+$//;