This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Adjust the skip count for t/io/dup.t for the -Uuseperlio case, in a way
authorNicholas Clark <nick@ccl4.org>
Mon, 5 Nov 2007 15:25:46 +0000 (15:25 +0000)
committerNicholas Clark <nick@ccl4.org>
Mon, 5 Nov 2007 15:25:46 +0000 (15:25 +0000)
that will hopefully make it harder for it to get out of sync again.

p4raw-id: //depot/perl@32225

t/io/dup.t

index d101688..3f211b4 100755 (executable)
@@ -10,7 +10,8 @@ use Config;
 no warnings 'once';
 
 my $test = 1;
-print "1..29\n";
+my $tests_needing_perlio = 17;
+plan(12 + $tests_needing_perlio);
 print "ok 1\n";
 
 open(DUPOUT,">&STDOUT");
@@ -91,7 +92,7 @@ open(F, ">&DUPOUT") or die "Cannot dup stdout back: $!";
 curr_test(13);
 
 SKIP: {
-    skip("need perlio", 14) unless $Config{useperlio};
+    skip("need perlio", $tests_needing_perlio) unless $Config{useperlio};
     
     ok(open(F, ">&", STDOUT));
     isnt(fileno(F), fileno(STDOUT));