List Info

Thread: C++ Completion Test fails




C++ Completion Test fails
user name
2008-02-23 07:53:39
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:UChain::
addDocumentChain: duchain: adding document
"file:///internal/2 134797064"   0x80b4300
QDEBUG : TestCppCodeCompletion::testInclude() <unknown
program name>(13389)/ KDevelop:UChain::
chainForDocument: No chain found for document 
"file:///internal/2 134797064"
QDEBUG : TestCppCodeCompletion::testInclude() <unknown
program name>(13389)/ KDevelop:UChain::
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/dec
laration.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?

Andreas

-- 
You are not dead yet.  But watch for further reports.

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

Re: C++ Completion Test fails
user name
2008-02-23 12:38:45
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:UChain::
addDocumentChain: duchain: adding document
"file:///internal/2 134797064"   0x80b4300
> QDEBUG : TestCppCodeCompletion::testInclude()
<unknown program name>(13389)/ KDevelop:UChain::
chainForDocument: No chain found for document 
"file:///internal/2 134797064"
> QDEBUG : TestCppCodeCompletion::testInclude()
<unknown program name>(13389)/ KDevelop:UChain::
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/dec
laration.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/tes
t_cppcodecompletion.cpp(196)]

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

Andreas

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

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

Re: C++ Completion Test fails
country flaguser name
Germany
2008-02-23 17:57:14
On Saturday 23 February 2008 19:38:45 Andreas Pakulat
wrote:
> 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:

The two other tests were already failing before, they broke
during the last 
months.

However today I've taken the time to fix them(The big
"Definition" refactoring 
was needed to fix one of them correctly), so we have 100%
working c++ support 
tests again. 

Greetings, David

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

Re: C++ Completion Test fails
user name
2008-02-23 18:14:58
On 24.02.08 00:57:14, David Nolden wrote:
> On Saturday 23 February 2008 19:38:45 Andreas Pakulat
wrote:
> > 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:
> 
> The two other tests were already failing before, they
broke during the last 
> months.
> 
> However today I've taken the time to fix them(The big
"Definition" refactoring 
> was needed to fix one of them correctly), so we have
100% working c++ support 
> tests again. 

Ok, I guess that answers my "why is definition removal
needed" question
in the other mail. 

However tests don't build for me:

[ 18%] Building CXX object
languages/cpp/tests/CMakeFiles/cppcodecompletiontest.dir/tes
t_cppcodecompletion.cpp.o
/home/andreas/KDE-work/4.0/kdevelop/languages/cpp/tests/test
_cppcodecompletion.cpp: In member function ‘void
TestCppCodeCompletion::testTypeConversion()’:
/home/andreas/KDE-work/4.0/kdevelop/languages/cpp/tests/test
_cppcodecompletion.cpp:251: error: cannot convert
‘KDevelop:UContext
*’ to ‘KDevelop:eclarati
on*’ in initialization

And I can't easily see the error without looking up the API
docs, so
I'll leave it up to you.

Andreas

PS: Yes this is with an up-to-date kdevplatform.

-- 
In the stairway of life, you'd best take the elevator.

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel
Re: C++ Completion Test fails
country flaguser name
Germany
2008-02-23 18:57:33
On Sunday 24 February 2008 01:14:58 Andreas Pakulat wrote:
> However tests don't build for me:
>
> [ 18%] Building CXX object
>
languages/cpp/tests/CMakeFiles/cppcodecompletiontest.dir/tes
t_cppcodecomple
>tion.cpp.o
>
/home/andreas/KDE-work/4.0/kdevelop/languages/cpp/tests/test
_cppcodecomplet
>ion.cpp: In member function ‘void
> TestCppCodeCompletion::testTypeConversion()’:
>
/home/andreas/KDE-work/4.0/kdevelop/languages/cpp/tests/test
_cppcodecomplet
>ion.cpp:251: error: cannot convert ‘KDevelop:UContext
*’ to
> ‘KDevelop:eclarati
on*’ in initialization
>
> And I can't easily see the error without looking up the
API docs, so
> I'll leave it up to you.

Umm yeah I don't know how that one slipped in, it's fixed.

Greetings, David

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel
Re: C++ Completion Test fails
user name
2008-02-24 02:45:01
On 24.02.08 01:57:33, David Nolden wrote:
> On Sunday 24 February 2008 01:14:58 Andreas Pakulat
wrote:
> > However tests don't build for me:
> >
> > [ 18%] Building CXX object
> >
languages/cpp/tests/CMakeFiles/cppcodecompletiontest.dir/tes
t_cppcodecomple
> >tion.cpp.o
> >
/home/andreas/KDE-work/4.0/kdevelop/languages/cpp/tests/test
_cppcodecomplet
> >ion.cpp: In member function ‘void
> > TestCppCodeCompletion::testTypeConversion()’:
> >
/home/andreas/KDE-work/4.0/kdevelop/languages/cpp/tests/test
_cppcodecomplet
> >ion.cpp:251: error: cannot convert ‘KDevelop:UContext
*’ to
> > ‘KDevelop:eclarati
on*’ in initialization
> >
> > And I can't easily see the error without looking
up the API docs, so
> > I'll leave it up to you.
> 
> Umm yeah I don't know how that one slipped in, it's
fixed.

That looks a lot better:
Totals: 12 passed, 0 failed, 0 skipped

Thanks.

Andreas

-- 
Bridge ahead.  Pay troll.

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel
[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )