Overview
| Artifact ID: | 9223de29a855d3b8d879c3dcd7f1981ff9ea539486acc32320bdc1859a6a39dc |
|---|---|
| Ticket: | 9f4feaaaa11646ec51d345a2697de898850c16f9
tcltest test contraints with a dash (-) in the name doesn't work |
| User & Date: | pointsman on 2023-04-24 19:12:35 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-plain"
- comment changed to:
Put the following stripped down example in a new file under tests, say rde.test if {"::tcltest" ni [namespace children]} { package require tcltest namespace import -force ::tcltest::* } test sometest {some test description} -constraints { bug-0306a5563 } -body { set var a set var } -result a cleanupTests Now try to run this (say from the unix directory of the same soure tree) with ./tcltest ../tests/all.tcl -file rde.test (You may even use a Tcl 8.6 tclsh or an installed Tcl 9 tclsh; they all show the same behaviour.) Here on debian I get: Test files run in separate interpreters Running tests that match: * Skipping test files that match: l.*.test Only running test files that match: rde.test Tests began at Mon Apr 24 20:57:21 CEST 2023 rde.test 1 bug-0306a5563 Tests ended at Mon Apr 24 20:57:21 CEST 2023 all.tcl: Total 1 Passed 0 Skipped 1 Failed 0 Sourced 1 Test Files. Notice the strange out put and the missing skip reason. To set the constraint on the cmd line to true with ./tcltest ../tests/all.tcl -file rde.test -constraints bug-0306a5563 doesn't change anything on the tests run output (other then the start/end time of course.) If I rename the constraint to bug0306a5563 in the example above everything works as expected. The run with ./tcltest ../tests/all.tcl -file rde.test returns [...] Test files run in separate interpreters Running tests that match: * Skipping test files that match: l.*.test Only running test files that match: rde.test Tests began at Mon Apr 24 21:03:39 CEST 2023 rde.test Tests ended at Mon Apr 24 21:03:39 CEST 2023 all.tcl: Total 1 Passed 0 Skipped 1 Failed 0 Sourced 1 Test Files. Number of tests skipped for each constraint: 1 bug0306a5563 so no strange output inbetween and a table with the skip reasons. Running with ./tcltest ../tests/all.tcl -file rde.test -constraints bug0306a5563 returns [...] Only running test files that match: rde.test Tests began at Mon Apr 24 21:05:32 CEST 2023 rde.test Tests ended at Mon Apr 24 21:05:32 CEST 2023 all.tcl: Total 1 Passed 1 Skipped 0 Failed 0 Sourced 1 Test Files. The tcltest man page say: "Each constraint has a name, which may be any string". The example above shows something else. - is_private changed to: "0"
- login: "pointsman"
- priority changed to: "5 Medium"
- private_contact changed to: "4ca203a8e925aecdd9419645f936bccf18cd6ea7"
- resolution changed to: "None"
- severity changed to: "Severe"
- status changed to: "Open"
- submitter changed to: "pointsman"
- subsystem changed to: "34. tcltest Package"
- title changed to:
tcltest test contraints with a dash (-) in the name doesn't work
- type changed to: "Bug"