Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9cc9ccdd2879801743cb0e2ee9fcb9a384ab4d18cd23d392927d750cd3f7b5db
Ticket: bd641d72d2901b9e0ad825d6b76326e5a647247d
package require tcltests failing during make test
User & Date: hypnotoad on 2018-10-01 17:21:12
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    When running "make tests" the following tests fail with the error:
    <p>
    <pre>
    Test file error: can't find package tcltests
        while executing
    "package require tcltests"
        (in namespace eval "::tcl::test::io" script line 15)
        invoked from within
    "namespace eval ::tcl::test::io {
        namespace import ::tcltest::*
    </pre>
    
    After a bit if fossil bisecting, I traced the problem to the following checkin:
    
    <pre>
    basra:unix seandeelywoods$ fossil bisect good
    bisect complete
      1 BAD     2018-09-29 20:39:10 6cedb893996a6ba9
      3 BAD     2018-09-24 16:19:17 dad7a5e5dc8284f5
      4 BAD     2018-09-22 10:09:23 645fb65227bbf857
      5 BAD     2018-09-13 20:30:20 0db5ab91bb811088
      6 BAD     2018-09-12 19:30:00 b74093feee50eb76
      7 GOOD    2018-09-07 22:23:00 4ccc3b6902e81691 CURRENT
      2 GOOD    2018-09-07 12:11:01 e891020c32f0a710
    </pre>
    
    That checkin marked the introduction of Tip 430 to the core. Initially it was thought that trunk was immune to the bug, but it turned out the tests only failed if <b>make install</b> was performed at some point using that tcl version.
    
    This issue was ultimately tracked down to a mistake in the tip430 implementation. In tclInterp.c around line 400, the new code to use zipfs to locate tcl_library was being called before the check to see if TCL_LIBRARY had been set in the environment. The zipfs code was moved to after he env() check. in checkin [3581eefbc3]. Which has eliminated the issue.
    
  5. foundin changed to: "core-8-branch (6cedb89399)"
  6. is_private changed to: "0"
  7. login: "hypnotoad"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "5846a328c39e4967aaeb56d4e03d3e783e2dd1b8"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "hypnotoad"
  14. subsystem changed to: "34. tcltest Package"
  15. title changed to: "package require tcltests failing during make test"
  16. type changed to: "Bug"