OpenQNX :: The QNX Community Portal

Aug 29, 2008 - 11:31 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 39 unlogged users and 2 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
mallard
Post subject: Code coverage plugin not working  PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
Alex Chapiro
Post subject: Re: Code coverage plugin not working  PostPosted: Dec 13, 2007 - 03:02 PM
Guest





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
 
   
Reply with quote Back to top
mallard
Post subject: RE: Re: Code coverage plugin not working  PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
Alex Chapiro
Post subject: Re: Code coverage plugin not working  PostPosted: Dec 14, 2007 - 02:34 PM
Guest





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
 
   
Reply with quote Back to top
mallard
Post subject: RE: Re: Code coverage plugin not working  PostPosted: 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.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.