]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(test_vector): minus-* requires
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 10 Sep 2004 20:54:32 +0000 (20:54 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 10 Sep 2004 20:54:32 +0000 (20:54 +0000)
_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

index f90be80aa26c2b3dc81141a08f58e599f968fe0c..5904f6d9b77488f30a3efcbafdeab4a3a6baa5e7 100755 (executable)
@@ -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};
        }