summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-04-01 07:40:33 +0000
committerJim Meyering <jim@meyering.net>2005-04-01 07:40:33 +0000
commit9c9c4327e2a95591784149566699a052ad12fdb9 (patch)
treee0d6466a67c6f723320c15d1cceee975332028bd /tests
parent361d16aba9cd0edfbb63a4bfc910d70b3f48718e (diff)
downloadcoreutils-9c9c4327e2a95591784149566699a052ad12fdb9.tar.xz
Don't let pr treat +1:-1 like +1:18446744073709551615.
(neg-page): Add a test for this.
Diffstat (limited to 'tests')
-rw-r--r--tests/pr/Test.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/pr/Test.pm b/tests/pr/Test.pm
index 066212d44..fd76957c4 100644
--- a/tests/pr/Test.pm
+++ b/tests/pr/Test.pm
@@ -355,6 +355,10 @@ my @tv = (
# Make sure these fail.
['col-0', '-0', '', '', 1],
['col-inval', '-'.'9'x100, '', '', 1],
+
+# Before coreutils-5.3.1, --pages=1:-1 would be treated like
+# --pages=1:18446744073709551615.
+['neg-page', '--pages=1:-1', '', '', 1],
);
#']]);