summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-22 09:03:38 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-22 09:03:38 (GMT)
commitada3e1dce9b00806b46799a2784eeaee6e4d190a (patch)
tree49507c48cfbd7878f99b18cc885d7f3b39dd2c9e
parent5623a4788e197931cedc57d4fc2d5c7ca57358f2 (diff)
downloadtcl-ada3e1dce9b00806b46799a2784eeaee6e4d190a.zip
tcl-ada3e1dce9b00806b46799a2784eeaee6e4d190a.tar.gz
tcl-ada3e1dce9b00806b46799a2784eeaee6e4d190a.tar.bz2
Add testcase for bug [1f40aa83c5]: crash with CFLAGS=-ftrapv
-rw-r--r--tests/clock.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/clock.test b/tests/clock.test
index 51bd89e..b7226db 100644
--- a/tests/clock.test
+++ b/tests/clock.test
@@ -18690,6 +18690,10 @@ test clock-6.10 {input of seconds - overflow} {
list [catch {clock scan 9223372036854775808 -format %s -gmt true} result] $result $::errorCode
} {1 {integer value too large to represent} {CLOCK dateTooLarge}}
+test clock-6.10a {input of seconds - overflow, bug [1f40aa83c5]} knownBug {
+ list [catch {clock scan 27670116110564327423 -format %s -gmt true} result] $result $::errorCode
+} {1 {integer value too large to represent} {CLOCK dateTooLarge}}
+
test clock-6.11 {input of seconds - two values} {
clock scan {1 2} -format {%s %s} -gmt true
} 2