|
2019-11-01
| ||
| 08:46 | • Closed ticket [b2b14f0bb5]: tcltest::test documents an -errorCode option, but th... artifact: e96fc92011 user: jan.nijtmans | |
|
2019-10-09
| ||
| 15:01 | • Ticket [b2b14f0bb5]: 3 changes artifact: a1787acdee user: dgp | |
|
2019-10-08
| ||
| 12:54 | • New ticket [b2b14f0bb5]. artifact: 00985367fa user: anonymous | |
tcltest::test documents an -errorCode option, but this is not implemented
Closed / Invalidb2b14f0bb5f4099700870c75eb65b68d235e1d42Created 7 years agoUpdated 7 years ago
Descriptionplain2019-10-08 12:54:48
The tcltest man page documents an option -errorCode to tcltest::test that is not implemented, at least not in the code reported by info body tcltest::test. I think supporting -errorCode would be useful. Also, references to outputChannel and errorChannel would be clearer if prefixed with ::tcltest::. The second paragraph of the description section states that commands in the ::tcltest namespace are not prefixed, but is silent on the topic of variables.
dgpplain2019-10-09 15:01:26
Here's an interactive session:
% package require tcltest
2.5.0
% namespace import tcltest::*
% test foo bar -body {error x y z} -result x -errorCode z
% test foo bar -body {error x y z} -result x -errorCode WRONG
==== foo bar FAILED
==== Contents of test case:
error x y z
---- Error code was: 'z'
---- Error code should have been: 'WRONG'
==== foo FAILED
Seems to be implemented. Do you have a more specific bug report where the option is failing to behave as documented?
jan.nijtmans Closed ticket [b2b14f0bb5].
[History diff]2019-11-01 08:46:38
Log in (anonymous is fine) to add a comment.