From 19785d4bfeea459c9a56a15087621087a88fc308 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 24 Jul 2003 07:13:10 +0000 Subject: (test_vector): Disable the `PIPE' tests when running `wc' with no options. This goes along with the change of 2003-07-20. --- tests/wc/Test.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/wc') diff --git a/tests/wc/Test.pm b/tests/wc/Test.pm index 3cc90b14c..f73c30c2f 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; -- cgit v1.2.3-70-g09d2