Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Momentics IDE Code Coverage: (8 Items)
   
Momentics IDE Code Coverage  
Hi,

I am working with Momentics IDE v4.5 Evaluation(QNX6.4.0) on Windows host.

I tried with the Example of Code Coverage project. I tried to Create the New launch configuration for 
rbt_server(binaries).
I selected C/C++ QNX Application to Run the configuration. I am getting the error as "Exec failed: Error Launching" 
Configuration, when i click the Run button to launch the configuration.

Can any one please let me know the reason for this failure, and provide guidance for using code coverage tool with IDE 
on windows host/QNX self host to generate the reports.


Thanks
Vijay K


Re: Momentics IDE Code Coverage  
Did you select a target?
Does you target running qconn?
Does it have /tmp folder?
Other messages IDE showed in this case?

vijay kumar wrote:
> Hi,
> 
> I am working with Momentics IDE v4.5 Evaluation(QNX6.4.0) on Windows host.
> 
> I tried with the Example of Code Coverage project. I tried to Create the New launch configuration for 
rbt_server(binaries).
> I selected C/C++ QNX Application to Run the configuration. I am getting the error as "Exec failed: Error Launching" 
Configuration, when i click the Run button to launch the configuration.
> 
> Can any one please let me know the reason for this failure, and provide guidance for using code coverage tool with IDE
 on windows host/QNX self host to generate the reports.
> 
> 
> Thanks
> Vijay K
> 
> 
> 
> 
> _______________________________________________
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post28262
> 
Re: Momentics IDE Code Coverage  
Hi,

Did you select a target?
I am not using the target. I am working with the QNX Host system.

for running on the host system, I did the following.

1.) Right Clicked on the rbt_server(binaries).
2.) selected the Run as.
3.) selected the c/c++ Application, This opens a window , here i selected the Local c/c++ Application and created a new 
configuration.
4.) Clicked on the Run button.
5.) The console window is showing as rbt_server is terminated.

I am working with the Local host for the code coverage.
Do i need to do any changes anywhere for local c/c++ application?

Does you target running qconn?
Does it have /tmp folder?
The tmp folder is not available for the host system(during local c/c++ Application)

Other messages IDE showed in this case?
The console window is showing as rbt_server is terminated.


The above process, i repeated with the rbt_client also. i got the same error.


Please give the solution  for this problem.

Re: Momentics IDE Code Coverage  
You can't run your binary as "Local C/C++ application". It's a Neutrino target binary. You need to install a Neutrino 
target system and run your binary using "C/C++ QNX QConn(IP)" application.

Here is a good document to guide your through the ten steps to run your first QNX application.

http://www.qnx.com/developers/docs/6.4.0/momentics/quickstart/about.html
Re: Momentics IDE Code Coverage  
Hi,

I tried to work with the QNX code Coverage, with simple c++ project created.

I followed the Ten steps to run a QNX program.

I am not getting 100% code coverage.

But For c projects i am able to achieve 100% coverage.

What could be reason for this?
For C++ projects do i need to configure extra things( libraries).

Thanks,
Vijay.
Re: Momentics IDE Code Coverage  
Why are you surprised having less than 100% coverage? It depends on the particular program you are running. For example,
 look at snippet below:

int main(int argc , char** argv) {
if(0) {
printf("Bad coverage\n");
}

return 0;
}

Do you expect to have 100% coverage for it?


Re: Momentics IDE Code Coverage  
Alex,

I am able to run through all the lines of code in my c++ project. but still i am not able to achieve 100% coverage.

The project is very simple with sigle main() with a printf statement in it.

The same code in c project its giving as 100% coverage.


Thanks,
Vijay.
Re: Momentics IDE Code Coverage  
If you not qnx developer you cannot use code coverage tool. It is not going to work on windows and linux.
It only works on neutrino.

vijay kumar wrote:
> Hi,
> 
> Did you select a target?
> I am not using the target. I am working with the QNX Host system.
> 
> for running on the host system, I did the following.
> 
> 1.) Right Clicked on the rbt_server(binaries).
> 2.) selected the Run as.
> 3.) selected the c/c++ Application, This opens a window , here i selected the Local c/c++ Application and created a 
new configuration.
> 4.) Clicked on the Run button.
> 5.) The console window is showing as rbt_server is terminated.
> 
> I am working with the Local host for the code coverage.
> Do i need to do any changes anywhere for local c/c++ application?
> 
> Does you target running qconn?
> Does it have /tmp folder?
> The tmp folder is not available for the host system(during local c/c++ Application)
> 
> Other messages IDE showed in this case?
> The console window is showing as rbt_server is terminated.
> 
> 
> The above process, i repeated with the rbt_client also. i got the same error.
> 
> 
> Please give the solution  for this problem.
> 
> 
> 
> _______________________________________________
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post28409
>