From a85181bdcc4455c4b42e6873318fdc8232b88a52 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Fri, 22 Mar 2024 09:03:38 +0000 Subject: Add testcase for bug [1f40aa83c5]: crash with CFLAGS=-ftrapv --- tests/clock.test | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v0.12