Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-07-14
23:46 • Closed ticket [1605269fff]: tests fail under -singleproc 1 option plus 7 oth... artifact: 7f42a14f70 user: andreas_kupries
2009-06-26
02:34 • Ticket [1605269fff]: 4 changes artifact: 5b8984e16b user: dgp
2008-07-26
06:14 • Ticket [1605269fff]: 4 changes artifact: 0e7d9b9f77 user: andreas_kupries
04:52 • Ticket [1605269fff]: 4 changes artifact: df1e778a16 user: das
04:45 • Ticket [1605269fff]: 4 changes artifact: a502d5d52b user: andreas_kupries
04:25 • Ticket [1605269fff]: 5 changes artifact: 7c7f8e2074 user: das
2008-07-25
23:06
* test/info.test: More work on singleTestInterp usability. This fixes bug [1605269]. check-in: b3b434585c user: andreas_kupries tags: trunk
2007-09-12
04:17 • Ticket [1605269fff] tests fail under -singleproc 1 option status still Open ... artifact: ae0d866a07 user: dgp
2006-12-17
10:49 • Ticket [1605269fff]: 4 changes artifact: 77cd1ad731 user: das
2006-12-10
12:24 • Ticket [1605269fff]: 4 changes artifact: 7cd756cde4 user: das
2006-12-08
21:27 • Ticket [1605269fff]: 5 changes artifact: 0fda854bd4 user: dgp
2006-11-29
14:06 • New ticket [1605269fff]. artifact: ab3b022a9a user: dgp

tests fail under -singleproc 1 option

Closed / Fixed1605269fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 17 years ago
Descriptionplain2006-11-29 14:06:21
When the -singleproc 1 option is
provided to tcltest, the following
tests fail, because the Tcl stack
level is not what's expected:

info-22.0,1,2,5,6,7,8
info-23.0,1,2,6

Perhaps rewriting these to use a slave
interp would resolve the matter?
dgpplain2006-12-08 21:27:38
Logged In: YES 
user_id=80530
Originator: YES


Two of these tests (22.8, 23.6)
have now started failing without
the -singleproc 1 options, just
because some internal details
of the tcltest package were
changed.

May be tricky, but we'll need
some improved tests that test
what needs testing without
being sensitive to other stuff.
dasplain2006-12-10 12:24:19
Logged In: YES 
user_id=90580
Originator: NO

adjusted the linenumbers in 22.8 and 23.6 that changed as a result of my change to tcltest.tcl, which takes care of those failures for now, but I agree that these tests should be made more robust and not depend on exact tcltest.tcl line numbers...

for the -singleproc failures, there is a singleProcess constraint that could be applied, at least until they are rewritten to be more robust.
dasplain2006-12-17 10:49:42
Logged In: YES 
user_id=90580
Originator: NO

for now, applied !singleTestInterp constraint to these tests so that they are not run with -singleproc 1. When they are rewritten to be more robust, the  constraint can be removed again.
dgpplain2007-09-12 04:17:05
Logged In: YES 
user_id=80530
Originator: YES


These tests are also sensitive to
precise line numbers in tcltest,
so any version other than 2.3a1
causes failures.

Also sensitive to precise line
numbers in info.test, so many
edits of that have potential
to cause test failures too.

Patching with knowBug on a
few obvious troublemakers, but
a reworking of how to test
[info frame] will be needed
to do this right.
dasplain2008-07-26 04:25:33
Logged In: YES 
user_id=90580
Originator: NO

the new info-37.0 test also fails when run with -singleproc 1, added !singleTestInterp constraint on all three branches.

on HEAD and core-8-5-branch, also updated tests info-22.8 and info-23.6: switch to glob matching (to avoid sensitivity to tcltest.tcl line number changes), remove knowBug constraint, fix expected result.

on core-8-4-branch, added !singleTestInterp to various tip280 tests that were failing with -singleproc 1, and switched info-22.8 & info-23.6 to glob matching.
andreas_kupriesplain2008-07-26 04:45:51
Logged In: YES 
user_id=75003
Originator: NO


Daniel, I noticed this today myself and have a local fix using -match glob to make the tests usable for both singleproc 0|1.
The constraint is wrong.
Please do not commit your changes.
I am currently working in this area doing more bug fixes etc.
dasplain2008-07-26 04:52:59
Logged In: YES 
user_id=90580
Originator: NO

ah good, obviously the constraint is just a workaround to make all tests pass again, if you have a better fix using glob please feel free to revert (already committed, sorry)
andreas_kupriesplain2008-07-26 06:14:43
Logged In: YES 
user_id=75003
Originator: NO

8.6/head should be good now.
Keeping open for 8.5/8.4 branches.
dgpplain2009-06-26 02:34:10
FWIW, 8.6/head is buggy on this point again.
andreas_kupriesplain2009-07-14 23:46:28
allow_comments - 1

Commits made to fix the issue. Was partially NRE-enabled source compiling to byte code and using relative locations, instead of absolute. Fixed by detecting whole-file compile and switching to absolute locations. This exposed larger problems in the handling of literal command arguments in bytecode (for location tracking through uplevel $script), due to literal sharing and compilation baking in the location data. Fixed by restructuring the BCEnter/Release functions and attendant data structures, tracking start line for bytecode, and recompiling when detecting location mismatch between calling context and data baked into the bytecode. Required more changes in coroutine and tailcall support, some data became coro-state we have to switch, and the new BCEnter/Release locations mean that tailcall has to deal with its own arguments, the execution engine forgets their removal due to the special trampolining of it. Lastly fixed bug in the for/while handling, used fixed index for loop body (2, ok for while, bad for for).
Log in (anonymous is fine) to add a comment.