|
2024-08-20
| ||
| 17:44 | Merge [0c9e96526ce5aa00], "Proposed fix for [fc87e3bddd]: get-3.4.1 fails in -singleproc testing". check-in: 122864a152 user: pooryorick tags: unchained, INCOMPATIBLE_LICENSE | |
|
2023-09-06
| ||
| 18:41 | • Closed ticket [fc87e3bddd]: get-3.4.1 fails when enabled plus 6 other change... artifact: 134fb05cd9 user: dgp | |
| 18:40 | [fc87e3bddd] Complete repair of flawed test. check-in: dec5990363 user: dgp tags: core-8-branch | |
| 18:37 | • Ticket [fc87e3bddd] get-3.4.1 fails when enabled status still Open with 3 ot... artifact: 7d2ea7e2a4 user: dgp | |
| 18:35 | • Ticket [fc87e3bddd]: 5 changes artifact: fa8bf91c6c user: dgp | |
| 18:31 | • Ticket [fc87e3bddd]: 3 changes artifact: 5ae26998fc user: jan.nijtmans | |
| 18:28 | Proposed fix for [fc87e3bddd]: get-3.4.1 fails in -singleproc testing closed check-in: 377c5b39c7 user: jan.nijtmans tags: bug-fc87e3bddd | |
| 18:19 | • Ticket [fc87e3bddd] get-3.4.1 fails in -singleproc testing status still Open... artifact: ea85f0cd4a user: dgp | |
| 14:25 | • New ticket [fc87e3bddd]. artifact: ac1daf5cd5 user: dgp | |
get-3.4.1 fails when enabled
Closed / Fixedfc87e3bddddf20e048d8e6870173ee48d22beee5Created 3 years agoUpdated 3 years ago
Descriptionplain2023-09-06 14:25:38
$ 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.
Referenced by3
122864a152Merge [0c9e96526ce5aa00], "Proposed fix for [fc87e3bddd]: get-3.4.1 fails in -singleproc testing". check-in2024-08-20 17:44:33dec5990363[fc87e3bddd] Complete repair of flawed test. check-in2023-09-06 18:40:54377c5b39c7Proposed fix for [fc87e3bddd]: get-3.4.1 fails in -singleproc testing check-in2023-09-06 18:28:40
dgpplain2023-09-06 18:19:43
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.
jan.nijtmanswiki2023-09-06 18:31:32
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 [here]
dgpplain2023-09-06 18:35:31
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.
dgpplain2023-09-06 18:37:17
Thanks for the confirmation. I'll get the fork closed.
dgp Closed ticket [fc87e3bddd].
[History diff]2023-09-06 18:41:50
Log in (anonymous is fine) to add a comment.