Artifacts Associated With Ticket fc87e3bddd
Ticket change [ac1daf5cd5] (rid 217752) by dgp on 2023-09-06 14:25:38:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- comment initialized to:
$ make test-tcl TESTFLAGS='-singleproc 1 -file "chanio.test get.test" -match get-3.4.1' ... chanio.test get.test ==== get-3.4.1 Tcl_GetDouble with iffy numbers FAILED ==== Contents of test case: lmap x {"09"} { catch {testdoubleobj set 1 $x} x set x } ---- Result was: {expected floating-point number but got "09" (looks like invalid octal number)} ---- Result should have been (exact matching): 9.0 ==== get-3.4.1 FAILED Without -singleproc 1 there is no failure, but the test is skipped due to the "deprecated" constraint. It's not clear to me that the test is correct for 8.7 as well. - foundin initialized to: "8.7"
- is_private initialized to: "0"
- login: "dgp"
- priority initialized to: "5 Medium"
- private_contact initialized to: "8e2300e85be5dd1445b9666eb9429055951e33be"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "11. Conversions from String"
- title initialized to: "get-3.4.1 fails in -singleproc testing"
- type initialized to: "Bug"
Ticket change [ea85f0cd4a] (rid 217765) by dgp on 2023-09-06 18:19:43:
- icomment:
There is a support script in the test suite named tcltests.tcl that some of the test files [source] to bring in common foundations. The test file chanio.test does. The test file get.test does not. One common item provided is the "deprecated" constraint. In this example the -singleproc changes things because it changes whether the test runs in an interp where the "deprecated" constraint is defined and true. Since get.test is using the "deprecated" constraint, seem like it should also [source] the support script that provides it.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [5ae26998fc] (rid 217771) by jan.nijtmans on 2023-09-06 18:31:32:
- icomment:
Good catch! You're absolutely right: The error (actuall: 2 errors) are in the testcase, which was wrongly compied from 9.0. 1) The testcase doesn't source "tcltests.tcl", that's why the "deprecated" constraint didn't work 2) The expected test-output was wrong (it was the 9.0 expected output, not the 8.x one) Fix [377c5b39c7da581a|here]
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [fa8bf91c6c] (rid 217773) by dgp on 2023-09-06 18:35:31:
- assignee changed to: "jan.nijtmans"
- icomment:
After making that correction, the test now reliably fails. I'm thinking the logic of what the "deprecated" constraint means, and whether the test should run and what result it should expect needs a review.
- login: "dgp"
- mimetype: "text/plain"
- title changed to: "get-3.4.1 fails when enabled"
Ticket change [7d2ea7e2a4] (rid 217774) by dgp on 2023-09-06 18:37:17:
- icomment:
Thanks for the confirmation. I'll get the fork closed.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [134fb05cd9] (rid 217776) by dgp on 2023-09-06 18:41:50:
- assignee changed to: "dgp"
- closedate changed to: "2460194.27905727"
- closer changed to: "dgp"
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"