This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
More portable reading.
[perl5.git] / t / io / dup.t
index 8f54799..9768800 100755 (executable)
@@ -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, "<dup$$") or die;
-    { local $/; is(<G>, "ggg\nfff\n") }
+    {
+       my $line;
+       $line = <G>; chomp $line; is($line, "ggg");
+       $line = <G>; chomp $line; is($line, "fff");
+    }
     close G;
 
     END { 1 while unlink "dup$$" }