Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-03-25
01:31 • Ticket [495662ffff] non-proc Hooks can be overwritten status still Closed ... artifact: ef1c10ee0e user: dgp
00:20 • Closed ticket [495662ffff]. artifact: c284593dd7 user: dgp
00:17 • Ticket [495662ffff]: 4 changes artifact: 71246ef0db user: dgp
00:17 • Add attachment 495662.patch to ticket [495662ffff] artifact: 8089e34ab6 user: dgp
00:17 • Ticket [495662ffff] non-proc Hooks can be overwritten status still Open wi... artifact: 461ae898b6 user: dgp
2002-03-23
06:06 • Ticket [495662ffff]: 1 change artifact: 5281f4f6d6 user: hobbs
2001-12-20
23:20 • New ticket [495662ffff]. artifact: 81135ec1b2 user: dgp

non-[proc] Hooks can be overwritten

Closed / Fixed495662ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-12-20 23:20:51
tcltest offers the ability to customize a test
harness by defining "hook" commands such as:

tcltest::initConstraintsHook

If a [proc] by that name is defined, the tcltest
package will call it at the documented time.

However, if the command by that name is not a [proc],
but instead is a command defined by other means,
tcltest will overwrite it with a no-op [proc].
This limitation makes no sense.

Replacing "info procs" with "info commands" in
the checks will correct this error.
hobbs Ticket [495662ffff]: 1 change [History diff]2002-03-23 06:06:31
dgpplain2002-03-25 00:17:54
Logged In: YES 
user_id=80530

Here's a patch
dgpplain2002-03-25 00:17:55
File Added - 19945: 495662.patch
dgpplain2002-03-25 00:20:05
Logged In: YES 
user_id=80530

committed to HEAD (2.0.2)
dgpplain2002-03-25 01:31:25
Logged In: YES 
user_id=80530

committed also to core-8-3-1-branch (1.0.2)
Log in (anonymous is fine) to add a comment.

Attachments: