Tcl Source Code

View Ticket
Login
Ticket UUID: 495662
Title: non-[proc] Hooks can be overwritten
Type: Bug Version: obsolete: 8.4a4
Submitter: dgp Created on: 2001-12-20 23:20:51
Subsystem: 34. tcltest Package Assigned To: dgp
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2002-03-25 01:31:25
Resolution: Fixed Closed By: dgp
    Closed on: 2002-03-24 18:31:25
Description:
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.
User Comments: dgp added on 2002-03-25 01:31:25:
Logged In: YES 
user_id=80530

committed also to core-8-3-1-branch (1.0.2)

dgp added on 2002-03-25 00:20:05:
Logged In: YES 
user_id=80530

committed to HEAD (2.0.2)

dgp added on 2002-03-25 00:17:55:

File Added - 19945: 495662.patch

dgp added on 2002-03-25 00:17:54:
Logged In: YES 
user_id=80530

Here's a patch

Attachments: