summaryrefslogtreecommitdiffstats
path: root/tests/clock.test
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2024-03-15 14:14:47 (GMT)
committersebres <sebres@users.sourceforge.net>2024-03-15 14:14:47 (GMT)
commitf81c7c620816c8a89bc363903c29f338bf7d6162 (patch)
tree67c647f543ac69a49a31606c094f5c6796bd3f88 /tests/clock.test
parenta20d3aea075e2b3990de10e1637613c7278d6acc (diff)
downloadtcl-f81c7c620816c8a89bc363903c29f338bf7d6162.zip
tcl-f81c7c620816c8a89bc363903c29f338bf7d6162.tar.gz
tcl-f81c7c620816c8a89bc363903c29f338bf7d6162.tar.bz2
fixes [1f40aa83c552f597]: suppress integer-overflow trapping (atm, GCC "trapv" only) for intended pieces, avoid unexpected app-crash;
test cases (knownBug) reverted.
Diffstat (limited to 'tests/clock.test')
-rw-r--r--tests/clock.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/clock.test b/tests/clock.test
index 4420534..2a3557c 100644
--- a/tests/clock.test
+++ b/tests/clock.test
@@ -18682,11 +18682,11 @@ test clock-6.8 {input of seconds} {
clock scan {9223372036854775807} -format %s -gmt true
} 9223372036854775807
-test clock-6.9 {input of seconds - overflow} knownBug {
+test clock-6.9 {input of seconds - overflow} {
list [catch {clock scan -9223372036854775809 -format %s -gmt true} result] $result $::errorCode
} {1 {integer value too large to represent} {CLOCK dateTooLarge}}
-test clock-6.10 {input of seconds - overflow} knownBug {
+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}}
@@ -36243,11 +36243,11 @@ test clock-34.16 {clock scan, ISO 8601 point in time format} {
set time [clock scan "19921023T235959" -gmt true]
clock format $time -format {%b %d, %Y %H:%M:%S} -gmt true
} "Oct 23, 1992 23:59:59"
-test clock-34.16.1a {clock scan, ISO 8601 T literal optional (YYYYMMDDhhmmss)} knownBug {
+test clock-34.16.1a {clock scan, ISO 8601 T literal optional (YYYYMMDDhhmmss)} {
set time [clock scan "19921023235959" -gmt true]
clock format $time -format {%b %d, %Y %H:%M:%S} -gmt true
} "Oct 23, 1992 23:59:59"
-test clock-34.16.1b {clock scan, ISO 8601 T literal optional (YYYYMMDDhhmm)} knownBug {
+test clock-34.16.1b {clock scan, ISO 8601 T literal optional (YYYYMMDDhhmm)} {
set time [clock scan "199210232359" -gmt true]
clock format $time -format {%b %d, %Y %H:%M:%S} -gmt true
} "Oct 23, 1992 23:59:00"