]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(test_vector): Disable the `PIPE' tests when running
authorJim Meyering <jim@meyering.net>
Thu, 24 Jul 2003 07:13:10 +0000 (07:13 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 24 Jul 2003 07:13:10 +0000 (07:13 +0000)
`wc' with no options.  This goes along with the change of 2003-07-20.

tests/wc/Test.pm

index 3cc90b14c716fccce38d544567d733646d68b7ff..f73c30c2fd575cf0fbe3f4ef2ecfd9470ad3ad5c 100755 (executable)
@@ -38,6 +38,11 @@ sub test_vector
       # FILE in the ouput -- and FILE is different depending on $srcdir.
       $Test::input_via{$test_name} = {FILE => 0}
         if $test_name =~ /-file$/;
+
+      # Now that `wc FILE' (note, with no options) produces results
+      # different from `cat FILE|wc', disable those two `PIPE' tests.
+      $flags eq ''
+       and delete $Test::input_via{$test_name}->{PIPE};
     }
 
   return @tv;