From: Jim Meyering Date: Thu, 24 Jul 2003 07:13:10 +0000 (+0000) Subject: (test_vector): Disable the `PIPE' tests when running X-Git-Tag: v5.0.90~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19785d4bfeea459c9a56a15087621087a88fc308;p=thirdparty%2Fcoreutils.git (test_vector): Disable the `PIPE' tests when running `wc' with no options. This goes along with the change of 2003-07-20. --- diff --git a/tests/wc/Test.pm b/tests/wc/Test.pm index 3cc90b14c7..f73c30c2fd 100755 --- a/tests/wc/Test.pm +++ b/tests/wc/Test.pm @@ -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;