Artifacts Associated With Ticket 572400ffff
Ticket change [080bef8fa7] (rid 89503) by dgp on 2002-06-22 04:05:02:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The [test] command honors constraint "expressions" so that, for example, one could constrain a test with "!unix" to run only on platforms that are not unix. (Don't do that! Use notUnix instead). However, the [limitConstraints] feature is implemented so that it only works if all constraints are simple lists of constraint keywords. (It may be even worse -- it could be that only simple constraints can be managed by the [limitConstraints] feature). For example, testing Tcl with the options -constraints knownBug -limitConstraints 1 to try to test only known bugs, the test tcltest-5.5 is still run because its constraint is !singleProc - foundin initialized to: "obsolete: 8.4a5"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "34. tcltest Package"
- title initialized to: "constraint exprs defeat limitConstraints"
- type initialized to: "Bug"
Ticket change [110cc03791] (rid 259468) by serhiy.storchaka on 2026-10-20 14:26:05:
- foundin changed to: "8.6.18, 9.0.5, 9.1.0"
- icomment:
Still the case on main, 9.0 and 8.6: -limitconstraints forces the unselected constraints to 0, so expressions like <code>!foo</code> or <code>$::tcl_version > 0</code> become true. With <code>-constraints knownBug -limitconstraints 1</code> the whole test suite runs 76 tests. Proposed fix in branch [241d536f30|tcltest-limitconstraints-expr] (stacked on the other tcltest fixes): in that mode an expression constraint must also name one of the selected constraints. The knownBug run then has 29 tests. New test tcltest-5.2b.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
Ticket change [0e9159b0a0] (rid 259545) by dgp on 2026-10-20 18:20:29:
- closer changed to: "nobody"
- comment changed to:
The [test] command honors constraint "expressions" so that, for example, one could constrain a test with "!unix" to run only on platforms that are not unix. (Don't do that! Use notUnix instead). However, the [limitConstraints] feature is implemented so that it only works if all constraints are simple lists of constraint keywords. (It may be even worse -- it could be that only simple constraints can be managed by the [limitConstraints] feature). For example, testing Tcl with the options -constraints knownBug -limitConstraints 1 to try to test only known bugs, the test tcltest-5.5 is still run because its constraint is !singleProc - icomment:
Thanks for the work on this. I'm putting it on my list of fixes to examine. Just a comment that for me a desired long-range fix for these issues would be to eliminate support for constraint expressions. They've always been short of working well, reliably and robustly, and the gain from trying to offer it is just not compelling. At least the ideal tcltest, version 3 in my head does not have it.
- login: "dgp"
- mimetype: "text/plain"
- severity changed to: "Minor"
Ticket change [8ed9bc39cc] (rid 259547) by dgp on 2026-10-20 18:30:18:
- icomment:
One consequence of constraint expression support is you cannot have an expression with a name anything like this-should-only-run-in-this-situation because tcltest insists on thinking that is a constraint subtraction. Just not good.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [25c06a6a74] (rid 259842) by jan.nijtmans on 2026-10-22 08:35:38:
- icomment:
Fixed in [891b7e7921|trunk], not backported yet to 9.0 and 8.6 I don't think I would want constraints with minus-signs in it. What I see now is using camelCase, like thisShouldOnlyRunInThisSituation
- login: "jan.nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Pending"
- icomment:
Ticket change [c62fffa3e3] (rid 260738) by jan.nijtmans on 2026-10-28 13:43:31:
- closedate changed to: "2461342.0718874307"
- closer changed to: "jan.nijtmans"
- icomment:
Now also backported to core-9-0-branch and core-8-6-branch Closing. Many thanks!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- status changed to: "Closed"