|
2026-10-27
| ||
| 14:49 | • Closed ticket [f0fd63394b]: registry.test skips all tests on main: there is no p... artifact: a1d0220330 user: jan.nijtmans | |
|
2026-10-23
| ||
| 02:27 | • Ticket [f0fd63394b]: 6 changes artifact: 85eed04430 user: apnadkarni | |
|
2026-10-22
| ||
| 17:19 | • Ticket [f0fd63394b]: 2 changes artifact: 4ccb3b175b user: serhiy.storchaka | |
|
2026-10-20
| ||
| 21:02 | • New ticket [f0fd63394b]. artifact: eb9426de01 user: serhiy.storchaka | |
registry.test skips all tests on main: there is no package tcl::registry
reg constraint with package require tcl::registry. No such package exists on main: Registry_Init only creates the ::tcl::registry command, and library/registry/pkgIndex.tcl provides registry 1.4. 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 (-load {package provide tcl::registry [info patchlevel]}), tcltest91 runs 120 tests and two of them fail, both from the same change (a global replace of "registry" with "tcl::registry"):
- registry-1.7 runs
registcl::registrytry get("invalid command name") instead oftcl::registry get. - registry-2.7 expects "The configuration tcl::registry key is invalid.", but the Windows message is "The configuration registry key is invalid."
Possible fixes: either let Registry_Init provide a tcl::registry package (with TCL_PATCH_LEVEL, as registry-1.0 expects, like tcl::oo), or set the constraint from [info commands ::tcl::registry] and adjust registry-1.0; plus correct registry-1.7 and 2.7.
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.
Fixed in [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!