]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Tell head to accept old-style options like `-1'.
authorJim Meyering <jim@meyering.net>
Sun, 17 Feb 2002 22:39:47 +0000 (22:39 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 17 Feb 2002 22:39:47 +0000 (22:39 +0000)
tests/head/Test.pm

index b278dbcf2d35e7e3c43a55bb1a1fae7f4a292d4e..a81c36f9719b1336ebad63b08356296ee0f5a43c 100644 (file)
@@ -2,6 +2,9 @@ package Test;
 require 5.002;
 use strict;
 
+# Tell head to accept old-style options like `-1'.
+$Test::env_default = ['_POSIX2_VERSION=199209'];
+
 my @tv = (
 # test name, options, input, expected output, expected return code
 #
@@ -26,8 +29,8 @@ my @tv = (
 ['obs-1', '-1c', "", "", 0],
 ['obs-2', '-1c', "12", "1", 0],
 ['obs-3', '-14c', "1234567890abcdefg", "1234567890abcd", 0],
-['obs-4', '-2b', [\'in'], [\'in-1024'], 0], #'
-['obs-5', '-1k', [\'in'], [\'in-1024'], 0], #'
+['obs-4', '-2b', [\'in'], [\'in-1024'], 0],
+['obs-5', '-1k', [\'in'], [\'in-1024'], 0],
 
 # This test fails for textutils-1.22, because head let 4096m overflow to 0
 # and did not fail.  Now head fails with a diagnostic.