Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 85eed044307092ef73a4bcd62e1fe9aa20e410949b5127f9e45ee432d8e26c96
Ticket: f0fd63394b840ee22d46c69b631eb39b4497fe42
registry.test skips all tests on main: there is no package tcl::registry
User & Date: apnadkarni on 2026-10-23 02:27:43
Changes

  1. assignee changed to: "jan.nijtmans"
  2. closer changed to: "nobody"
  3. 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 &#91;info patchlevel&#93;}</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>&#91;info commands ::tcl::registry&#93;</code> and adjust registry-1.0; plus correct registry-1.7 and 2.7.
    
  4. 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.
    
  5. login: "apnadkarni"
  6. mimetype: "text/x-markdown"