]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(test_vector): Avoid test failure when
authorJim Meyering <jim@meyering.net>
Sun, 5 Dec 2004 23:01:53 +0000 (23:01 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 5 Dec 2004 23:01:53 +0000 (23:01 +0000)
_POSIX2_VERSION=199209 is in the environment, or when building on
e.g., OpenBSD 3.2.

tests/tail/Test.pm

index 69670c36098524ba4c7e1477cc0dc5b56fa289c0..8deb9eb7ab81dd721c001cfe5b621664b617a42e 100755 (executable)
@@ -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)
     {