Skip to content
Tcl Source Code History Of Ticket 572400ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 572400ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 572400ffffffffffffffffffffffffffffffffff

  1. Ticket change [080bef8fa7] (rid 89503) by dgp on 2002-06-22 04:05:02:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
    4. foundin initialized to: "obsolete: 8.4a5"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "34. tcltest Package"
    10. title initialized to: "constraint exprs defeat limitConstraints"
    11. type initialized to: "Bug"
  2. Ticket change [110cc03791] (rid 259468) by serhiy.storchaka on 2026-10-20 14:26:05:

    1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
    2. 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.
      
    3. login: "serhiy.storchaka"
    4. mimetype: "text/x-fossil-wiki"
  3. Ticket change [0e9159b0a0] (rid 259545) by dgp on 2026-10-20 18:20:29:

    1. closer changed to: "nobody"
    2. 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
      
    3. 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.
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. severity changed to: "Minor"
  4. Ticket change [8ed9bc39cc] (rid 259547) by dgp on 2026-10-20 18:30:18:

    1. 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.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  5. Ticket change [25c06a6a74] (rid 259842) by jan.nijtmans on 2026-10-22 08:35:38:

    1. 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
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
    4. resolution changed to: "Fixed"
    5. status changed to: "Pending"
  6. Ticket change [c62fffa3e3] (rid 260738) by jan.nijtmans on 2026-10-28 13:43:31:

    1. closedate changed to: "2461342.0718874307"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      Now also backported to core-9-0-branch and core-8-6-branch
      
      Closing. Many thanks!
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. status changed to: "Closed"