summaryrefslogtreecommitdiff
path: root/tests/tail/Test.pm
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-01-23 03:47:20 +0000
committerJim Meyering <jim@meyering.net>1997-01-23 03:47:20 +0000
commit591844b3873fffcd71acfa8c85421d99ec3ca971 (patch)
treeaab3b4daf063fa824b31994dc569b90b815dec4d /tests/tail/Test.pm
parent2611844743b1d9a0fa1ca3ce02de6295b2be18b9 (diff)
downloadcoreutils-591844b3873fffcd71acfa8c85421d99ec3ca971.tar.xz
.
Diffstat (limited to 'tests/tail/Test.pm')
-rwxr-xr-xtests/tail/Test.pm17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/tail/Test.pm b/tests/tail/Test.pm
index 9d18af2cb..b1b2e8646 100755
--- a/tests/tail/Test.pm
+++ b/tests/tail/Test.pm
@@ -31,7 +31,22 @@ my @tv = (
# This is equivalent to +10l
['obsx-2', '+l', "x\n" . ("y\n" x 10) . 'z', "y\ny\nz", 0],
-['err-1', '+2', "x\ny\n", "y\n", 0],
+# This should get `tail: +cl: No such file or directory'
+['err-1', '+cl', '', '', 1],
+
+# This should get `tail: l: invalid number of bytes'
+['err-2', '-cl', '', '', 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'
+['err-3', '-c99999999999999999999', '', '', 1],
+['err-4', '-c', '', '', 1],
+
+# Same as -l 10
+['stdin-1', '-', '', '', 0],
+['stdin-2', '-', "x\n" . ("y\n" x 10) . 'z', ("y\n" x 9) . 'z', 0],
+['stdin-3', '-l 10', "x\n" . ("y\n" x 10) . 'z', ("y\n" x 9) . 'z', 0],
);
sub test_vector