C++ Completion Test fails

Andreas Pakulat apaku at gmx.de
Sat Feb 23 18:38:45 UTC 2008


On 23.02.08 14:53:39, Andreas Pakulat wrote:
> Hi,
> 
> I wanted to check wether my last fix for the cpp completion test is
> correct, but the test already fails early on:
> ********* Start testing of TestCppCodeCompletion *********
> Config: Using QTest library 4.4.0, Qt 4.4.0-snapshot-20080214
> PASS   : TestCppCodeCompletion::initTestCase()
> QDEBUG : TestCppCodeCompletion::testInclude() <unknown program name>(13389)/ TestPreprocessor::sourceNeeded: parsing included file " "file1.h" "
> QDEBUG : TestCppCodeCompletion::testInclude() <unknown program name>(13389)/ TestPreprocessor::sourceNeeded: parsing included file " "testFile1.h" "
> QDEBUG : TestCppCodeCompletion::testInclude() <unknown program name>(13389)/ ContextBuilder::buildContexts: ContextBuilder::buildContexts: compiling
> QDEBUG : TestCppCodeCompletion::testInclude() <unknown program name>(13389)/ KDevelop::DUChain::addDocumentChain: duchain: adding document "file:///internal/2 134797064"   0x80b4300
> QDEBUG : TestCppCodeCompletion::testInclude() <unknown program name>(13389)/ KDevelop::DUChain::chainForDocument: No chain found for document  "file:///internal/2 134797064"
> QDEBUG : TestCppCodeCompletion::testInclude() <unknown program name>(13389)/ KDevelop::DUChain::addDocumentChain: new count of real chains:  1  proxy-chains:  0
> QFATAL : TestCppCodeCompletion::testInclude() ASSERT: "DUChain::lock()->currentThreadHasReadLock() || DUChain::lock()->currentThreadHasWriteLock()" in file /home/andreas/KDE-work/4.0/kdevplatform/language/duchain/declaration.cpp, line 201
> FAIL!  : TestCppCodeCompletion::testInclude() Received a fatal error.
>    Loc: [Unknown file(0)]
> Totals: 1 passed, 1 failed, 0 skipped
> ********* Finished testing of TestCppCodeCompletion *********
> 
> Any ideas?

Ok  seems like that was due to the obviously wrong porting. Now I have
still two failing tests but at least all of the can be run:

FAIL!  : TestCppCodeCompletion::testCompletionContext() Compared values are not the same
   Actual (function->functions().size()): 3
   Expected (4): 4
   Loc: [/home/andreas/KDE-work/4.0/kdevelop/languages/cpp/tests/test_cppcodecompletion.cpp(196)]

FAIL!  : TestCppCodeCompletion::testTypeConversion() 'conv.implicitConversion(Honk, Erna)' returned FALSE. ()
   Loc: [/home/andreas/KDE-work/4.0/kdevelop/languages/cpp/tests/test_cppcodecompletion.cpp(280)]

Andreas

-- 
Your reasoning powers are good, and you are a fairly good planner.




More information about the KDevelop-devel mailing list