summaryrefslogtreecommitdiff
path: root/tests/tail
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-09-10 20:54:32 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-09-10 20:54:32 +0000
commit6840f212f14c99f6c27809fab592763ba963f68f (patch)
tree317a6b015386c1082172317afd9567cf51c6b120 /tests/tail
parent160d311c8be7efe720a711953c320ead4a7c76ce (diff)
downloadcoreutils-6840f212f14c99f6c27809fab592763ba963f68f.tar.xz
(test_vector): minus-* requires
_POSIX2_VERSION=199209 now, to work correctly if there is an input file. err-1 and err-3 no longer errors if there is another file.
Diffstat (limited to 'tests/tail')
-rwxr-xr-xtests/tail/Test.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/tail/Test.pm b/tests/tail/Test.pm
index f90be80aa..5904f6d9b 100755
--- a/tests/tail/Test.pm
+++ b/tests/tail/Test.pm
@@ -79,11 +79,13 @@ sub test_vector
{
my ($test_name, $flags, $in, $exp, $ret) = @$t;
- $test_name =~ /^(obs|err-[134])/
+ $test_name =~ /^(obs|err-[134]|minus-)/
and $Test::env{$test_name} = ['_POSIX2_VERSION=199209'];
# If you run the minus* tests with a FILE arg they'd hang.
- if ($test_name =~ /^minus/)
+ # If you run the err-1 or err-3 tests with a FILE, they'd misinterpret
+ # the arg unless we are using the obsolete form.
+ if ($test_name =~ /^(minus|err-[13])/)
{
$Test::input_via{$test_name} = {REDIR => 0, PIPE => 0};
}