C++ duchain unit tests

Milian Wolff mail at milianw.de
Sat Jun 19 10:57:43 UTC 2010


On Saturday 19 June 2010 12:48:06 David Nolden wrote:
> I guess the main problem is that the old contexts either aren't
> removed from the duchain at the end of the tests, or the
> remove(topContext) doesn't work properly. This needs to be found out.
> 
> The first problem could be solved by using something similar to my
> recently added "InsertIntoDUChain" class, which automatically releases
> the top-context in the destructor.

I think you mean the LockedTopContext? I've pushed a commit yesterday that 
uses that class everywhere and it is still behaving randomly. So I expect that 
release() aka

DUChain::self()->removeDocumentChain(static_cast<TopDUContext*>(top));

is not working as it should.

Bye
-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100619/09f84555/attachment.sig>


More information about the KDevelop-devel mailing list