 |
|
 |
| Author |
Message |
|
|
Post subject: Code coverage plugin not working
Posted: Dec 11, 2007 - 09:20 PM
|
|
New Member
Joined: Dec 11, 2007
Posts: 3
|
|
Hey,
I am trying to use the Code Coverage plugin in the IDE and I can't get any good results out of it. Help anyone?
The code is meant for an embedded system but I'm testing it on a x86 platform; it does not interact with Photon. The unit tests work fine but I can't get the plugin to give me good numbers. It has erratic behavior, sometimes crashing outright, sometimes reporting bad numbers (coverage stops halfway through a source code file), sometimes not connecting. Is there something in my setup that prevents it from working correctly, or is the plugin just buggy? The release notes mention some issues with it.
I am using QNX 6.3.2, IDE 4.0.1, gcc 3.3.5, Windows host (dual-core P4), x86 target (running in VMWare) and qconn. Otherwise, everything runs fine. Switching to gcc 2.95.3 doesn't help.
--
mallard |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: Code coverage plugin not working
Posted: Dec 13, 2007 - 03:02 PM
|
|
|
|
Are you using last qconn on your target?
mallard wrote:
Quote:
Hey,
I am trying to use the Code Coverage plugin in the IDE and I can't get
any good results out of it. Help anyone?
The code is meant for an embedded system but I'm testing it on a x86
platform; it does not interact with Photon. The unit tests work fine
but I can't get the plugin to give me good numbers. It has erratic
behavior, sometimes crashing outright, sometimes reporting bad
numbers (coverage stops halfway through a source code file),
sometimes not connecting. Is there something in my setup that
prevents it from working correctly, or is the plugin just buggy? The
release notes mention some issues with it.
I am using QNX 6.3.2, IDE 4.0.1, gcc 3.3.5, Windows host (dual-core
P4), x86 target (running in VMWare) and qconn. Otherwise, everything
runs fine. Switching to gcc 2.95.3 doesn't help.
--
mallard
|
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: Code coverage plugin not working
Posted: Dec 13, 2007 - 07:39 PM
|
|
New Member
Joined: Dec 11, 2007
Posts: 3
|
|
Yes, I recently upgraded everything, host and target. On the target properties in the "Run..." window, qconn is reported as using the latest version. I had similar, but even worse, problems with the coverage plugin with the previous version the QNX suite (6.3.0 sp2 I think).
I am about to give up on this and use gcov directly. Too bad, that plugin would have been useful.
--
mallard |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: Code coverage plugin not working
Posted: Dec 14, 2007 - 02:34 PM
|
|
|
|
Is it possible to have an example from you?
mallard wrote:
Quote:
Yes, I recently upgraded everything, host and target. On the target
properties in the "Run..." window, qconn is reported as
using the latest version. I had similar, but even worse, problems
with the coverage plugin with the previous version the QNX suite
(6.3.0 sp2 I think).
I am about to give up on this and use gcov directly. Too bad, that
plugin would have been useful.
--
mallard
|
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: Code coverage plugin not working
Posted: Dec 14, 2007 - 09:51 PM
|
|
New Member
Joined: Dec 11, 2007
Posts: 3
|
|
| I'm not sure what you're asking for, for an example. The code base that I use is about 30 kLOC long. I tried the plugin with small, trivial projects and it ran fine. Lately, when I run my test suite (which takes about 30 min to run), the code coverage monitor stops after a couple of minutes ("<stopped> MyProgram - Coverage [gcc Code Coverage]" in debug Window), and the coverage data is no longer updated. |
|
|
| |
|
|
|
 |
|
|
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group Credits |
|
|
|
 |