Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1909 constraint exprs defeat limitConstraints

obsolete: 8.4a5
open
Don Porter
5
2002-06-22
2002-06-22
Don Porter
No

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

Discussion