Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 70ce635357d6b33941a009e859f37e4016f57481
Ticket: 1773989fffffffffffffffffffffffffffffffff
Constraints with underscores + non-numeric boolean values
User & Date: flatworm on 2007-08-14 16:38:24
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    tcltest 2.2.8.
    
    Custom constraints with underscores in their names don't influence the execution of tests they are applied to when assigned non-numeric boolean value, like "false".
    
    Testcase:
    
    testConstraint have_mmap false
    
    test mytest-1.1 desc -constraints {
      have_mmap
    } -body {
      foo bar
    } -result 0
    
    The test will be executed despite it's constrains prohibits execution.
    
    Quick fix from dgp:
    
    edit line 2246
    if {$doTest == 0} {
    change to:
    if {!$doTest} {
    
    That is confirmed to work.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "flatworm"
  10. subsystem changed to: "34. tcltest Package"
  11. title changed to:
    Constraints with underscores + non-numeric boolean values
    
  12. type changed to: "Bug"