Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-03-26
00:12 • Ticket [495726ffff] tcltest stomps ::auto_path status still Closed with 2 ot... artifact: 13e5a8fba9 user: dgp
00:12 • Closed ticket [495726ffff]. artifact: 50c0174ed3 user: dgp
2002-03-23
06:06 • Ticket [495726ffff]: 1 change artifact: c548f99b71 user: hobbs
2001-12-21
03:20 • New ticket [495726ffff]. artifact: f8aa1ed003 user: dgp

tcltest stomps ::auto_path

Closed / Fixed495726ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-12-21 03:20:00
Lines 3455-3456 of tcltest.tcl say:

3455     # Ensure that we have a minimal auto_path so
we don't pick up extra junk.
3456     set ::auto_path [list [info library]]

I have no idea what the comment is talking about
regarding "extra junk", but the consequence is
that tcltest cannot be used to test any package
that depends on auto-loading for its proper
operation.  As an example, in Tk:

$ cd unix
$ ./tktest ../tests/choosedir.test

<lots of failed tests because Tk needs autoloading>

Commenting out line 3456 seems to take care
of the problem.
hobbs Ticket [495726ffff]: 1 change [History diff]2002-03-23 06:06:31
dgpplain2002-03-26 00:12:26
Logged In: YES 
user_id=80530

Fixed in HEAD (2.0.2)
dgp Ticket [495726ffff]: 2 changes [History diff]2002-03-26 00:12:27
Log in (anonymous is fine) to add a comment.