From 6840f212f14c99f6c27809fab592763ba963f68f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 10 Sep 2004 20:54:32 +0000 Subject: [PATCH] (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. --- tests/tail/Test.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/tail/Test.pm b/tests/tail/Test.pm index f90be80aa2..5904f6d9b7 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}; } -- 2.47.2