Artifacts Associated With Ticket 940ce8f95872ed87
Ticket change [0ff997bd68] (rid 170941) by dgp on 2019-04-09 19:01:35:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
$ make test TESTFLAGS='-singleproc 1 -file "cmdMZ.test namespace\*.test"' ... namespace-old.test ==== namespace-old-9.5 empty import list in "namespace import" command FAILED ==== Contents of test case: lsort [namespace import] ---- Result was: bytestring cleanupTests configure customMatch debug errorChannel errorFile getMatchingFiles interpreter limitConstraints loadFile loadScript loadTestedCommands mainThread makeDirectory makeFile match matchDirectories matchFiles normalizeMsg normalizePath outputChannel outputFile preserveCore removeDirectory removeFile restoreState runAllTests saveState singleProcess skip skipDirectories skipFiles temporaryDirectory test testConstraint testsDirectory threadReap timerate verbose viewFile workingDirectory ---- Result should have been (exact matching): bytestring cleanupTests configure customMatch debug errorChannel errorFile getMatchingFiles interpreter limitConstraints loadFile loadScript loadTestedCommands mainThread makeDirectory makeFile match matchDirectories matchFiles normalizeMsg normalizePath outputChannel outputFile preserveCore removeDirectory removeFile restoreState runAllTests saveState singleProcess skip skipDirectories skipFiles temporaryDirectory test testConstraint testsDirectory threadReap verbose viewFile workingDirectory ==== namespace-old-9.5 FAILED namespace.test ==== namespace-28.1 NamespaceImportCmd, no args FAILED ==== Contents of test case: catch {namespace delete {*}[namespace children :: test_ns_*]} lsort [namespace import] ---- Result was: bytestring cleanupTests configure customMatch debug errorChannel errorFile getMatchingFiles interpreter limitConstraints loadFile loadScript loadTestedCommands mainThread makeDirectory makeFile match matchDirectories matchFiles normalizeMsg normalizePath outputChannel outputFile preserveCore removeDirectory removeFile restoreState runAllTests saveState singleProcess skip skipDirectories skipFiles temporaryDirectory test testConstraint testsDirectory threadReap timerate verbose viewFile workingDirectory ---- Result should have been (exact matching): bytestring cleanupTests configure customMatch debug errorChannel errorFile getMatchingFiles interpreter limitConstraints loadFile loadScript loadTestedCommands mainThread makeDirectory makeFile match matchDirectories matchFiles normalizeMsg normalizePath outputChannel outputFile preserveCore removeDirectory removeFile restoreState runAllTests saveState singleProcess skip skipDirectories skipFiles temporaryDirectory test testConstraint testsDirectory threadReap verbose viewFile workingDirectory ==== namespace-28.1 FAILED - foundin initialized to: "8.5+"
- is_private initialized to: "0"
- login: "dgp"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to: "TIP 527 breaks two namespace tests"
- type initialized to: "Bug"
Ticket change [c7a420104c] (rid 170942) by dgp on 2019-04-09 19:07:23:
- icomment:
The trouble is that tests in cmdMZ.test pull [timerate] into the global namespace, which then upsets the tests in namespace*.test that find it there unexpectedly. We want the test suite to be robust to the "-singleproc 1" option. This could be solved multiple ways. I think I prefer revising [timerate] to not pop into :: without an explicit [namespace import] by the programmer, which would be added to cmdMZ.test and balanced with a [namespace forget]. Better yet, an approach that would not pull [timerate] into :: at all, but would pull it into the namespace tcl::test::cmdMZ where are the testing is done in the file cmdMZ.test. Would not even need [namespace forget]. The import would disappear when the testing namespace gets deleted.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [5d4ab0c7d3] (rid 170986) by sebres on 2019-04-09 19:56:35:
- closedate changed to: "2458583.33097076"
- closer changed to: "sebres"
- icomment:
Fixed in [242fe24b35] now, and sorry for that... Thus closed. BTW, I didn't thought "-singleproc 1" works properly at all across several tests, because I always saw a lot of errors like - can't set "a": variable is array, etc (if used this option).<br/> I believe we need several clean-up's and/or inclusions of tests in namespaces etc in order to make it completely safe for usage of "-singleproc 1".
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"