Message-ID: <m3n105gjk3.fsf@anima.de>
p4raw-id: //depot/perl@13902
open(I, 'sysio.t') || die "sysio.t: cannot find myself: $!";
-$reopen = ($^O eq 'VMS' || $^O eq 'os2' || $^O eq 'MSWin32' || $^O eq 'NetWare' || $^O eq 'dos' ||
+$reopen = ($^O eq 'VMS' ||
+ $^O eq 'os2' ||
+ $^O eq 'MSWin32' ||
+ $^O eq 'NetWare' ||
+ $^O eq 'dos' ||
$^O eq 'mpeix');
$x = 'abc';
print "ok 19\n";
# default offset 0
-print 'not ' unless (syswrite(O, $a, 2) == 2);
-print "ok 20\n";
+if (syswrite(O, $a, 2) == 2){
+ print "ok 20\n";
+} else {
+ print "# $!\nnot ok 20\n";
+ # most other tests make no sense after e.g. "No space left on device"
+ die $!;
+}
+
# $a still intact
print 'not ' unless ($a eq "#!.\0\0erl");
unlink $outfile;
-chdir('..');
+chdir('..');
1;