Skip to content
Tcl Source Code Artifact [0da5a44039]
Login

Artifact [0da5a44039]

Artifact 0da5a4403904e27914b6ede796bcb3e6d2029fb7f697e0d119c427b87cccebad:

Ticket change [0da5a44039] - New ticket [51aa53616067cb63|51aa536160] <i>clock timezone tests fail when ran against system tzdata</i>. by rossburton on 2026-02-27 17:34:56.
D 2026-02-27T17:34:56.242
J assignee nobody
J closer nobody
J cmimetype text/x-markdown
J comment I'm\sin\sa\scross-compiled\senvironment\sso\srunning\sthe\stcl\stest\ssuite\soutside\sof\sthe\sbuild\stree\son\sthe\starget\sto\sverify\sthat\stcl\sis\sworking\sand\sintegrated\scorrectly.\r\n\r\nI\sbuild\stcltest\sand\sinstall\sthat\sand\sthe\stests/\sdirectory.\s\sMost\stests\swork:\r\n\r\n```\r\n$\s./tcltest\stests/dict.test\r\ndict.test:\tTotal\t373\tPassed\t371\tSkipped\t2\tFailed\t0\r\nNumber\sof\stests\sskipped\sfor\seach\sconstraint:\r\n\t2\tmemory\r\n```\r\n\r\nHowever,\sif\sI\srun\sthe\sclock\stests\swith\sa\stcl\sthat\sdidn't\sinstall\sthe\stzdata\spackage\sin\sthe\slibrary\sas\swe\shave\s/usr/share/zoneinfo:\r\n\r\n```\r\n$\s./tcltest\stests/clock.test\r\n\s\sValidity\sdefault\smode:\son\r\n\r\n\r\n====\sclock-59.2.vm:1\scorrect\stime\szone\snames,\sformat\sand\sscan\sback,\sbug\sand\sregression\s[2c237beffbace823]\sFAILED\r\n====\sContents\sof\stest\scase:\r\n\r\n\s\s\s\sset\sresult\s{}\r\n\s\s\s\sforeach\s{base\stz}\s{\r\n\t\s1700000000\s"Etc/GMT-2"\r\n\t\s1700000000\s"Etc/GMT+2"\r\n\t\s1301184000\s"Europe/Kaliningrad"\r\n\t\s\s152632800\s"Pacific/Chatham"\r\n\t\s-765317964\s"America/Paramaribo"\r\n\t-2337928528\s"Australia/Eucla"\r\n\s\s\s\s}\s{\r\n\tset\sv\s[clock\sformat\s$base\s-timezone\sEtc/GMT-2\s-format\s"%Y-%m-%d\s%H:%M:%S\s%Z"]\r\n\tlappend\sresult\s[expr\s{[set\st\s[clock\sscan\s$v\s-format\s"%Y-%m-%d\s%H:%M:%S\s%Z"]]\s==\s$base\s?\s1\s:\s"0\s($t\s!=\s$base\sfor\s$v)"}]\r\n\tlappend\sresult\s[expr\s{[set\st\s[clock\sscan\s$v]]\s==\s$base\s?\s1\s:\s"0\s($t\s!=\s$base\sfor\s$v)"}]\r\n\s\s\s\s}\r\n\s\s\s\sset\sresult\r\n\r\n----\sResult\swas:\r\n1\s{0\s(1700007080\s!=\s1700000000\sfor\s2023-11-15\s00:13:20\s+02)}\s1\s{0\s(1700007080\s!=\s1700000000\sfor\s2023-11-15\s00:13:20\s+02)}\s1\s{0\s(1301191080\s!=\s1301184000\sfor\s2011-03-27\s02:00:00\s+02)}\s1\s{0\s(152639880\s!=\s152632800\sfor\s1974-11-02\s16:00:00\s+02)}\s1\s{0\s(-765310884\s!=\s-765317964\sfor\s1945-10-01\s05:40:36\s+02)}\s1\s{0\s(-2337921448\s!=\s-2337928528\sfor\s1895-11-30\s17:24:32\s+02)}\r\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\r\n1\s1\s1\s1\s1\s1\s1\s1\s1\s1\s1\s1\r\n====\sclock-59.2.vm:1\sFAILED\r\n```\r\n\r\nNote\sthat\sthe\sin-tree\stests\swork\sas\sthey\sset\sTCL_LIBRARY\sto\spoint\sat\sthe\ssource\stree,\swhich\sincludes\stzdata.\r\n\r\nIt's\sentirely\spossible\sthat\sI'm\sdoing\ssomething\swrong/dumb,\sbut\sit's\salso\spossible\sthat\sthe\stzdata\sloading\shas\sbroke,\sor\sthe\scopy\sof\stzdata\sin\stcl\sdoesn't\smatch\sthe\s"real"\stzdata\s2025c\sthat\sI\shave\sinstalled.
J is_private 0
J login rossburton
J priority 5\sMedium
J private_contact 996cc25f404016303f46d284bf704c17d8b7bc5f
J resolution None
J severity Minor
J status Open
J submitter rossburton
J subsystem 34.\stcltest\sPackage
J title clock\stimezone\stests\sfail\swhen\sran\sagainst\ssystem\stzdata
J type Bug
K 51aa53616067cb63900b17ca1d71f07b094ffa1a
U rossburton
Z 720ea95fbe8e9fca22b933bca31829a4