Assert in duchain during PHP Unit-Test
Milian Wolff
mail at milianw.de
Tue May 12 11:56:58 UTC 2009
David Nolden schrieb:
> Am Montag 11 Mai 2009 22:33:48 schrieb Niko Sams:
>> I added because of a duchain bug that did't allow more than about
>> 5000(?) declarations
>> in one context. Then David added support for that using MonsterBuckets
>> or something like that.
>> Afaik this test passed before our hackaton - so it could be related to
>> the ref-count patches?
>
> I've checked the assertion, and added a comment to it. The problem: You call
> DUChain::self()->removeDocumentChain(..), without calling DUChain::self()-
>> addDocumentChain(..) first.
>
> Greetings, David
Thanks! Now I check if the context was added and only remove it in these
cases.
Or would there be an advantage to add the context to the chain? Since
it's for tests only I doubt I want to add it to the chain...
--
Milian Wolff
http://milianw.de
More information about the KDevelop-devel
mailing list