Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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: