summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-07-24 07:13:10 +0000
committerJim Meyering <jim@meyering.net>2003-07-24 07:13:10 +0000
commit19785d4bfeea459c9a56a15087621087a88fc308 (patch)
tree127a1a35371260d89104784cd5a4a3a29be063f4 /tests
parent37fd290bd76411abab3e9262ff0f28d64ddec1dd (diff)
downloadcoreutils-19785d4bfeea459c9a56a15087621087a88fc308.tar.xz
(test_vector): Disable the `PIPE' tests when running
`wc' with no options. This goes along with the change of 2003-07-20.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/wc/Test.pm5
1 files changed, 5 insertions, 0 deletions
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;