summaryrefslogtreecommitdiff
path: root/tests/wc/Test.pm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wc/Test.pm')
-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;