summaryrefslogtreecommitdiff
path: root/tests/head
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-07-10 18:25:05 +0000
committerJim Meyering <jim@meyering.net>1997-07-10 18:25:05 +0000
commit735847657b8be2be0dc57d284f72ebd0447be474 (patch)
treea97be2d8ba490540bf5c9aef2164c6c3f16fb799 /tests/head
parent8d6318c532114a930ad8182fb8550820ee1a8671 (diff)
downloadcoreutils-735847657b8be2be0dc57d284f72ebd0447be474.tar.xz
*** empty log message ***
Diffstat (limited to 'tests/head')
-rw-r--r--tests/head/Test.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/head/Test.pm b/tests/head/Test.pm
index 6cc67c207..b5abda723 100644
--- a/tests/head/Test.pm
+++ b/tests/head/Test.pm
@@ -29,8 +29,12 @@ my @tv = (
['obs-4', '-2b', [\'in'], [\'in-1024'], 0], #'
['obs-5', '-1k', [\'in'], [\'in-1024'], 0], #'
-# This test fails for textutils-1.22, because head didn't fail.
-['fail-0', '-n 4096m', 'a\n', '', 1], #'
+# This test fails for textutils-1.22, because head let 4096m overflow to 0.
+# Now it gets a diagnostic.
+['fail-0', '-n 4096m', "a\n", "", 1],
+
+# In spite of its name, this test passes -- just to contrast with the above.
+['fail-1', '-n 2048m', "a\n", "a\n", 0],
);