X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fop%2Fwrite.t;h=a86b4ebb9ab46eb8a125c3177b63c4f72ed64d11;hb=a4c04bdcc508b6a45f83e703d0f82401445aa55b;hp=7dddbb46ec19d21371f4ae9649744c2969b5534f;hpb=d4a0c6f3fd7e1afcf00066d61e6733d74c5a3772;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/op/write.t b/t/op/write.t index 7dddbb4..a86b4eb 100755 --- a/t/op/write.t +++ b/t/op/write.t @@ -273,7 +273,8 @@ else # 12..44: scary format testing from Merijn H. Brand -if ($^O eq 'VMS') { +if ($^O eq 'VMS' || $^O eq 'MSWin32' || $^O eq 'dos' || + ($^O eq 'os2' and not eval '$OS2::can_fork')) { foreach (12..44) { print "ok $_ # skipped: '|-' and '-|' not supported\n"; } exit(0); } @@ -289,7 +290,9 @@ my $tm = 1; # Top margin (empty lines before first output) my $bm = 2; # Bottom marging (empty lines between last text and footer) my $lm = 4; # Left margin (indent in spaces) +select ((select (STDOUT), $| = 1)[0]); if ($lm > 0 and !open STDOUT, "|-") { # Left margin (in this test ALWAYS set) + select ((select (STDOUT), $| = 1)[0]); my $i = 12; my $s = " " x $lm; while () {