Skip to content
Tcl Source Code View Ticket
Login

View Ticket

registry.test skips all tests on main: there is no package tcl::registry

Closed / Fixedf0fd63394b840ee22d46c69b631eb39b4497fe42Created 44 days agoUpdated 37 days ago
Descriptionwiki2026-10-20 21:02:08
Since [f67a1b0563] ("Use more tcl::registry, when possible", 2026-06-11) tests/registry.test sets its 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 of tcl::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.

serhiy.storchaka Ticket [f0fd63394b]: 2 changes [History diff]2026-10-22 17:19:32
apnadkarnimarkdown2026-10-23 02:27:43

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.

jan.nijtmanswiki2026-10-27 14:49:47

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!

Log in (anonymous is fine) to add a comment.