Make TabsWrap tests work around broken VMS pipes.
Craig A. Berry [Mon, 23 Jul 2007 01:47:12 +0000 (01:47 +0000)]
p4raw-id: //depot/perl@31646

lib/Text/TabsWrap/t/fill.t
lib/Text/TabsWrap/t/tabs.t

index dab0432..8af4a0e 100755 (executable)
@@ -49,9 +49,8 @@ DONE
 
 $| = 1;
 
-print "1..";
-print @tests/2;
-print "\n";
+my $numtests = scalar(@tests) / 2;
+print "1..$numtests\n";
 
 use Text::Wrap;
 
index 1bba9a6..cd6f32c 100755 (executable)
@@ -86,9 +86,8 @@ DONE
 
 $| = 1;
 
-print "1..";
-print @tests/2;
-print "\n";
+my $numtests = scalar(@tests) / 2;
+print "1..$numtests\n";
 
 use Text::Tabs;