Tcl Source Code

View Ticket
Login
Ticket UUID: d3cf54139d5fa637c091195e3fec6d964125dd73
Title: static package Tcltest as provided in app tcltest lacks child interp support
Type: Bug Created on: 2017-11-14 15:41:15
Submitter: dgp Assigned to: nobody
Subsystem: - New Builtin Commands Severity: Important
Priority: 5 Medium Last modified: 2017-11-14 17:11:31
Status: Open Closed by: nobody
Resolution: None Closed on:
Version: all
Description:
$ make runtest
...
% package present Tcltest
8.7a2
% interp create child
child
% child eval package require Tcltest
can't find package Tcltest
%
User Comments:
dgp added on 2017-11-14 15:43:20:
This is a problem because the test suite
is written with the expectation that Tcltest
is available in all the interps that run tests.

In particular, all tests in package.test that
have the constraint testpreferstable are
always skipped because they run in child interps,
and child interps cannot access the 
testpreferstable command that comes from the
Tcltest package.

When we have tests that never run, we get bugs
popping up due to lack of testing.

dgp added on 2017-11-14 17:11:31:
Used workarounds to deal with the immediate
troubles in package.test.

Maybe the best way forward for the Tcltest
package would be to make it [load]-able.