Skip to content
Tcl Source Code View Ticket
Login

View Ticket

RFE: provide configurable -timeout option for tcltests

Open1293539fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-09-17 04:33:03
Hi,

I have certain tcltests which can hang forever when
there is bug in the code. For example, the code may be
invoking vwait command  but the watched variable never
gets updated.

It would be nice if there was a -timeout option which
can be configured to an appropriate max value and if
the tcltest doesn't finish in the specified time, it
should terminate the test. The default value of
-timeout can be -1 which means the tcltests can run
forever, like they currently do.

Hemang.
dkfplain2005-09-20 03:16:59
Logged In: YES 
user_id=79902

It would be fairly easy to implement this in 8.5 on a
per-test-file basis using interpreter time limits. On a
per-test basis, this is hard; it is much easier to write the
test itself to be robust (e.g. by using an after callback
that sets all the vwaited variables to "timeout" or some
other similar magic value).
Log in (anonymous is fine) to add a comment.