|
2010-02-15
| ||
| 18:58 | • Closed ticket [2950259fff]: TclOO changes cause Itcl 4 test delete-3.4 fail ... artifact: bc2f0ccd75 user: dkf | |
|
2010-02-12
| ||
| 22:19 | • Ticket [2950259fff]: 4 changes artifact: c85e64b1d8 user: dkf | |
| 16:16 | • Ticket [2950259fff]: 5 changes artifact: a15c31670e user: dkf | |
| 03:03 | • New ticket [2950259fff]. artifact: 8af43532f0 user: dgp | |
TclOO changes cause Itcl 4 test delete-3.4 fail
Closed / Fixed2950259fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2010-02-12 03:03:52
Full `make test` on HEAD (with bundled packages):
==== delete-3.4 object destructors get invoked, even during catastrophe FAILED
==== Contents of test case:
lsort $test_delete_watch
---- Result was:
---- Result should have been (exact matching):
::test_delete0 ::test_delete1 ::test_delete2 ::test_delete_base0 ::test_delete_base1 ::test_delete_base2
==== delete-3.4 FAILED
dkfplain2010-02-12 16:16:45
I know, but I don't know what to do about it. I suppose we could mark it as a knownBug...
dkfplain2010-02-12 22:19:16
The test is depending on another test (delete-3.3) that involves deleting a class by killing its namespace. That's when TclOO has the most trouble cleaning up because too much has already gone by the point when TclOO gets control. A test that involved the use of [rename] instead would work better. BTW, I've found a couple of ways of fixing this. "Horrific hack" is the best description of my ideas so far...
dkfplain2010-02-15 18:58:58
allow_comments - 1 OK, the evil hack (that worked) was to make an ensemble in a private namespace that would be deleted early enough during namespace destruction, and to hang doing nice cleanup off that via a delete trace. Hacky, but worked. Based on that, I added another (internal) callback to namespace deletion instead. That's much cheaper and can't be pulled apart by scripts poking in where they shouldn't. But there's no way that I'll try to backport to 8.5. (The bug can be considered to lie between the namespace code, the TclOO code and the itcl code.) Also revised the TclOO tests so that running destructors properly when killing an object by deleting its namespace is an explicitly tested case.
Log in (anonymous is fine) to add a comment.