X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstrict.t;h=f03271b536455642b798002037b95edebab56047;hb=8d481ee5bb3b5edbc9e7e7ba50aa3437fea792a6;hp=8b9083f4fc557201f6f0c6583c251ea5f5e84412;hpb=b695f709e8a342e35e482b0437eb6cdacdc58b6b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/strict.t b/lib/strict.t index 8b9083f..f03271b 100644 --- a/lib/strict.t +++ b/lib/strict.t @@ -18,7 +18,7 @@ END { if ($tmpfile) { 1 while unlink $tmpfile; } } my @prgs = () ; -foreach (sort glob($^O eq 'MacOS' ? ":pragma:strict-*" : "pragma/strict-*")) { +foreach (sort glob($^O eq 'MacOS' ? ":lib::strict:*" : "lib/strict/*")) { next if /(~|\.orig|,v)$/; @@ -31,7 +31,7 @@ foreach (sort glob($^O eq 'MacOS' ? ":pragma:strict-*" : "pragma/strict-*")) { local $/ = undef; @prgs = (@prgs, split "\n########\n", ) ; } - close F ; + close F or die "Could not close: $!" ; } undef $/; @@ -59,7 +59,7 @@ for (@prgs){ push @temps, $filename ; open F, ">$filename" or die "Cannot open $filename: $!\n" ; print F $code ; - close F ; + close F or die "Could not close: $!" ; } shift @files ; $prog = shift @files ; @@ -67,13 +67,13 @@ for (@prgs){ } open TEST, ">$tmpfile"; print TEST $prog,"\n"; - close TEST; + close TEST or die "Could not close: $!"; my $results = $Is_MSWin32 ? - `.\\perl -I../lib $switch $tmpfile 2>&1` : - $^O eq 'MacOS' ? - `$^X -I::lib $switch $tmpfile` : + `.\\perl -I../lib $switch $tmpfile 2>&1` : $^O eq 'NetWare' ? - `perl -I../lib $switch $tmpfile 2>&1` : + `perl -I../lib $switch $tmpfile 2>&1` : + $^O eq 'MacOS' ? + `$^X -I::lib -MMac::err=unix $switch $tmpfile` : `./perl $switch $tmpfile 2>&1`; my $status = $?; $results =~ s/\n+$//;