| Ticket UUID: | 9a1dca76cd230032f91d82594207ed1f2c101c00 | ||
| Title: | clock-59.2 failure | ||
| Type: | Bug | Created on: | 2024-10-30 15:29:46 |
| Submitter: | dgp | Assigned to: | nobody |
| Subsystem: | 06. Time Measurement | Severity: | Minor |
| Priority: | 5 Medium | Last modified: | 2024-10-30 16:27:53 |
| Status: | Closed | Closed by: | dgp |
| Resolution: | Invalid | Closed on: | 2024-10-30 16:27:53 |
| Version: | trunk | ||
| Description: | ||||
==== clock-59.2.vm:0 correct time zone names, format and scan back, bug and regression [2c237beffbace823] FAILED
==== Contents of test case:
set result {}
foreach {base tz} {
1700000000 "Etc/GMT-2"
1700000000 "Etc/GMT+2"
1301184000 "Europe/Kaliningrad"
152632800 "Pacific/Chatham"
-765317964 "America/Paramaribo"
-2337928528 "Australia/Eucla"
} {
set v [clock format $base -timezone Etc/GMT-2 -format "%Y-%m-%d %H:%M:%S %Z"]
lappend result [expr {[set t [clock scan $v -format "%Y-%m-%d %H:%M:%S %Z"]] == $base ? 1 : "0 ($t != $base for $v)"}]
lappend result [expr {[set t [clock scan $v]] == $base ? 1 : "0 ($t != $base for $v)"}]
}
set result
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: time zone Etc/GMT-2 not found
while executing
"return -options $opts "time zone $timezone not found""
(procedure "::tcl::clock::SetupTimeZone" line 82)
invoked from within
"::tcl::clock::SetupTimeZone Etc/GMT-2"
invoked from within
"clock format $base -timezone Etc/GMT-2 -format "%Y-%m-%d %H:%M:%S %Z""
("foreach" body line 2)
invoked from within
"foreach {base tz} {
1700000000 "Etc/GMT-2"
1700000000 "Etc/GMT+2"
1301184000 "Europe/Kaliningrad"
152632800 "Pacific/Chatham"
-765317964 "A..."
("uplevel" body line 3)
invoked from within
"uplevel 1 $script"
---- errorCode: CLOCK badTimeZone {$:fileName}
==== clock-59.2.vm:0 FAILED
| ||||
| User Comments: | ||||
sebres added on 2024-10-30 15:52:07:
I guess you have --enable-zipfs (default) by configuring?.. If so you have probably to regenerate or reembeed the library (the fix implies the changes on clock.tcl and tzdata, which is embedded together with tcl-library as zip-vfs into the so-binary)... I don't know whether the dependencies to *.tcl in library in makefile are fully correct for the the @LIBRARIES@ or TCL_LIB_FILE (I was not implementing the --enable-zipfs)...
Missed If not, can you please check why [67e7522bd1903dc2] doesn't work on your platform? Anyway, fresh built, all tests pass for any platform in GHA - commit 1417cbb539103 (details). dgp added on 2024-10-30 16:27:53:
`make clean` takes care of it. | ||||
