From: Jim Meyering Date: Sun, 5 Dec 2004 23:01:53 +0000 (+0000) Subject: (test_vector): Avoid test failure when X-Git-Tag: v5.3.0~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d96f41e1a17e4b1918ba83dcf403198984c0a66;p=thirdparty%2Fcoreutils.git (test_vector): Avoid test failure when _POSIX2_VERSION=199209 is in the environment, or when building on e.g., OpenBSD 3.2. --- diff --git a/tests/tail/Test.pm b/tests/tail/Test.pm index 69670c3609..8deb9eb7ab 100755 --- a/tests/tail/Test.pm +++ b/tests/tail/Test.pm @@ -78,6 +78,10 @@ my @tv = ( sub test_vector { + # With _POSIX2_VERSION=199209, `tail -c' succeeds, but err-6 expects + # a failure, so set _POSIX2_VERSION to ensure it fails. + $Test::env{'err-6'} = ['_POSIX2_VERSION=200112']; + my $t; foreach $t (@tv) {