summaryrefslogtreecommitdiff
path: root/tests/tail/Test.pm
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-01-24 01:16:39 +0000
committerJim Meyering <jim@meyering.net>1997-01-24 01:16:39 +0000
commit8a66d0dd57ce7f7eb7c2b37e1901621065fcbf84 (patch)
tree5baf603d075c09bfc9dcfb9aa46678c0aeaa91b1 /tests/tail/Test.pm
parent1f678023d5e361ab539c07d2c686e649797d1334 (diff)
downloadcoreutils-8a66d0dd57ce7f7eb7c2b37e1901621065fcbf84.tar.xz
.
Diffstat (limited to 'tests/tail/Test.pm')
-rwxr-xr-xtests/tail/Test.pm14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/tail/Test.pm b/tests/tail/Test.pm
index 5a0fddad9..4ec332b7b 100755
--- a/tests/tail/Test.pm
+++ b/tests/tail/Test.pm
@@ -40,15 +40,21 @@ my @tv = (
# This should get `tail: l: invalid number of bytes'
['err-2', '-cl', '', '', 1],
+# This should get `tail: z: invalid suffix character in obsolescent option'
+['err-3', '+2cz', '', '', 1],
+
+# This should get `tail: X: invalid suffix character in obsolescent option'
+['err-4', '-2cX', '', '', 1],
+
# Since the number is larger than 2^64, this should provoke
# the diagnostic: `tail: 99999999999999999999: number of bytes is so large \
# that it is not representable' on all systems... probably, for now, maybe.
-['err-3', '-c99999999999999999999', '', '', 1],
-['err-4', '-c', '', '', 1],
+['err-5', '-c99999999999999999999', '', '', 1],
+['err-6', '-c', '', '', 1],
# Same as -n 10
-['stdin-1', '-', '', '', 0],
-['stdin-2', '-', "x\n" . ("y\n" x 10) . 'z', ("y\n" x 9) . 'z', 0],
+['minus-1', '-', '', '', 0],
+['minus-2', '-', "x\n" . ("y\n" x 10) . 'z', ("y\n" x 9) . 'z', 0],
['n-1', '-n 10', "x\n" . ("y\n" x 10) . 'z', ("y\n" x 9) . 'z', 0],
['n-2', '-n -10', "x\n" . ("y\n" x 10) . 'z', ("y\n" x 9) . 'z', 0],