aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-12-18 07:00:59 -0600
committerRob Landley <rob@landley.net>2020-12-18 07:00:59 -0600
commitc0f0b967a81156e781ebe335eebe9932ceb10ce2 (patch)
treebde5815d3d681eb49df79651cdc2d4951ac457de
parent2eacf3843380344ea7cfdbf49167ed0d293430a1 (diff)
downloadtoybox-c0f0b967a81156e781ebe335eebe9932ceb10ce2.tar.gz
Add seq INT_MIN test.
-rwxr-xr-xtests/seq.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/seq.test b/tests/seq.test
index 4284617d..05d9b1e9 100755
--- a/tests/seq.test
+++ b/tests/seq.test
@@ -70,4 +70,7 @@ testing "invalid increment" "seq 1 1f 1 2>/dev/null || echo y" "y\n" "" ""
# TODO: busybox fails this too, but GNU seems to not use double for large ints.
#testing "too large for double" "seq -s, 9007199254740991 1 9007199254740992" "9007199254740992\n" "" ""
+testing "INT_MIN" "seq -2147483648 -2147483647" "-2147483648\n-2147483647\n"\
+ "" ""
+
testing "fast path" "timeout 10 seq 10000000 > /dev/null" "" "" ""