Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-09-12
04:20 • Closed ticket [1773989fff]: Constraints with underscores + non-numeric boolean v... artifact: 4cb03c9cf4 user: dgp
2007-08-14
16:38 • New ticket [1773989fff]. artifact: 70ce635357 user: flatworm

Constraints with underscores + non-numeric boolean values

Closed / Fixed1773989fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-08-14 16:38:24
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.
dgpplain2007-09-12 04:20:50
Logged In: YES 
user_id=80530
Originator: NO


Fixed in tcltest 2.2.9 and 2.3b1
Log in (anonymous is fine) to add a comment.