summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-01-20 18:19:50 +0000
committerJim Meyering <jim@meyering.net>2003-01-20 18:19:50 +0000
commitdcd7703911aa522fba29f40bb77437d2cabfeb4e (patch)
tree7e5927c761b456fa159e2f8fae66a455d5175fb2 /tests
parent9cfc4300cd9c3816048d61d0a2de4c5cb88410b2 (diff)
downloadcoreutils-dcd7703911aa522fba29f40bb77437d2cabfeb4e.tar.xz
(bignum): New test to demonstrate that large
format widths no longer smash strftime's stack and cause infloop.
Diffstat (limited to 'tests')
-rw-r--r--tests/date/Test.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/date/Test.pm b/tests/date/Test.pm
index c0545693a..2070a2430 100644
--- a/tests/date/Test.pm
+++ b/tests/date/Test.pm
@@ -138,6 +138,10 @@ sub test_vector
['relative-2', "--utc -d '1970-01-01 UTC +961062237 sec' $fmt", {},
"2000-06-15 09:43:57", 0],
+ # This would infloop (or appear to) prior to coreutils-4.5.5,
+ # due to a bug in strftime.c.
+ ['bignum', "-d '1999-06-01' +%3004Y", {}, '0' x 3000 . '1999', 0],
+
# FIXME: add a lot more...
);