Artifacts Associated With Ticket f0fd63394b
Ticket change [eb9426de01] (rid 259582) by serhiy.storchaka on 2026-10-20 21:02:08:
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
Since [f67a1b0563] ("Use more tcl::registry, when possible", 2026-06-11) tests/registry.test sets its <code>reg</code> constraint with <code>package require tcl::registry</code>. No such package exists on main: <code>Registry_Init</code> only creates the <code>::tcl::registry</code> command, and library/registry/pkgIndex.tcl provides <code>registry 1.4</code>. So the constraint is always false and all 126 tests are skipped on every Windows build, in CI too. Checked with MSVC 2022 tclsh91/tcltest91 of main on Windows 11. core-9-0-branch is not affected. With the constraint forced (<code>-load {package provide tcl::registry [info patchlevel]}</code>), tcltest91 runs 120 tests and two of them fail, both from the same change (a global replace of "registry" with "tcl::registry"): <ul> <li>registry-1.7 runs <code>registcl::registrytry get</code> ("invalid command name") instead of <code>tcl::registry get</code>.</li> <li>registry-2.7 expects "The configuration tcl::registry key is invalid.", but the Windows message is "The configuration registry key is invalid."</li> </ul> Possible fixes: either let <code>Registry_Init</code> provide a <code>tcl::registry</code> package (with TCL_PATCH_LEVEL, as registry-1.0 expects, like <code>tcl::oo</code>), or set the constraint from <code>[info commands ::tcl::registry]</code> and adjust registry-1.0; plus correct registry-1.7 and 2.7. - foundin initialized to: "9.1.0"
- login: "serhiy.storchaka"
- priority initialized to: "5 Medium"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "serhiy.storchaka"
- subsystem initialized to: "32. registry Package"
- title initialized to:
registry.test skips all tests on main: there is no package tcl::registry
- type initialized to: "Bug"
Ticket change [4ccb3b175b] (rid 260056) by serhiy.storchaka on 2026-10-22 17:19:32:
- login: "serhiy.storchaka"
- resolution changed to: "None"
Ticket change [85eed04430] (rid 260062) by apnadkarni on 2026-10-23 02:27:43:
- assignee changed to: "jan.nijtmans"
- closer changed to: "nobody"
- comment changed to:
Since [f67a1b0563] ("Use more tcl::registry, when possible", 2026-06-11) tests/registry.test sets its <code>reg</code> constraint with <code>package require tcl::registry</code>. No such package exists on main: <code>Registry_Init</code> only creates the <code>::tcl::registry</code> command, and library/registry/pkgIndex.tcl provides <code>registry 1.4</code>. So the constraint is always false and all 126 tests are skipped on every Windows build, in CI too. Checked with MSVC 2022 tclsh91/tcltest91 of main on Windows 11. core-9-0-branch is not affected. With the constraint forced (<code>-load {package provide tcl::registry [info patchlevel]}</code>), tcltest91 runs 120 tests and two of them fail, both from the same change (a global replace of "registry" with "tcl::registry"): <ul> <li>registry-1.7 runs <code>registcl::registrytry get</code> ("invalid command name") instead of <code>tcl::registry get</code>.</li> <li>registry-2.7 expects "The configuration tcl::registry key is invalid.", but the Windows message is "The configuration registry key is invalid."</li> </ul> Possible fixes: either let <code>Registry_Init</code> provide a <code>tcl::registry</code> package (with TCL_PATCH_LEVEL, as registry-1.0 expects, like <code>tcl::oo</code>), or set the constraint from <code>[info commands ::tcl::registry]</code> and adjust registry-1.0; plus correct registry-1.7 and 2.7. - icomment:
In my opinion, registry should have continued to use the `registry` command along with `package require registry`. Amongst other things, that ensures the `package require` continues to work as in 9.0. Not sure why it was changed to use `tcl::registry` everywhere. A single additional test to ensure `tcl::registry` was a defined command would suffice. But that's only an opinion. Leaving it to Jan to decide as per his rationale for making the change.
- login: "apnadkarni"
- mimetype: "text/x-markdown"
Ticket change [a1d0220330] (rid 260691) by jan.nijtmans on 2026-10-27 14:49:47:
- closedate changed to: "2461341.1179137267"
- closer changed to: "jan.nijtmans"
- icomment:
Fixed in [b6340f48b4|this] commit. The explanation is much simpler. I did a search/replace from "registry" to "tcl::registry" in the testcases, forgetting that the package name "registry" should not be changed. I didn't notice the tests being skipped. Should be fixed now. Thanks!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"