From: Paul Eggert Date: Thu, 22 Jul 2004 20:54:53 +0000 (+0000) Subject: Reinstate f-1 test, since we now pass. X-Git-Tag: v5.3.0~1111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1391d2dc5c07a632321b471d66e706527e1bb843;p=thirdparty%2Fcoreutils.git Reinstate f-1 test, since we now pass. Add a new commented-out f-2 test, which we still fail. (test_vector): All f-* tests are special cases, not just f-1. --- diff --git a/tests/tail/Test.pm b/tests/tail/Test.pm index c4e15422d3..f90be80aa2 100755 --- a/tests/tail/Test.pm +++ b/tests/tail/Test.pm @@ -68,7 +68,8 @@ my @tv = ( ['n-5b', '-n 0', "y\n" x 5, '', 0], # With textutils-1.22, this failed. -#['f-1', '-f -n 1', "a\nb\n", "b\n", 0], +['f-1', '-f -n 1', "a\nb\n", "b\n", 0], +#['f-2', '-f -n 1 -', "a\nb\n", "b\n", 0], ); sub test_vector @@ -86,7 +87,7 @@ sub test_vector { $Test::input_via{$test_name} = {REDIR => 0, PIPE => 0}; } - elsif ($test_name eq 'f-1') + elsif ($test_name =~ /^f-/) { # Using redirection or a file would make this hang. $Test::input_via{$test_name} = {PIPE => 0};