From: Jarkko Hietaniemi Date: Sun, 14 Sep 2003 07:44:26 +0000 (+0000) Subject: More portable reading. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ad1c95008f60417d352b3b69be994ff9e4297763;p=p5sagit%2Fp5-mst-13.2.git More portable reading. p4raw-id: //depot/perl@21224 --- diff --git a/t/io/dup.t b/t/io/dup.t index 8f54799..9768800 100755 --- a/t/io/dup.t +++ b/t/io/dup.t @@ -9,7 +9,7 @@ BEGIN { use Config; my $test = 1; -print "1..25\n"; +print "1..26\n"; print "ok 1\n"; open(DUPOUT,">&STDOUT"); @@ -87,7 +87,7 @@ if ($Config{useperlio}) { curr_test(13); SKIP: { - skip("need perlio", 13) unless $Config{useperlio}; + skip("need perlio", 14) unless $Config{useperlio}; ok(open(F, ">&", STDOUT)); isnt(fileno(F), fileno(STDOUT)); @@ -122,7 +122,11 @@ SKIP: { close F; # flush second open(G, ", "ggg\nfff\n") } + { + my $line; + $line = ; chomp $line; is($line, "ggg"); + $line = ; chomp $line; is($line, "fff"); + } close G; END { 1 while unlink "dup$$" }