Help on -fprofile-arcs -ftest-coverage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am facing a problem in code coverage.

Currently I have c files which after getting built generates certain rpm
files.
As a part of build, i'm using "-fprofile-arcs -ftest-coverage" flags while
compiling and "-fprofile-arcs -ftest-coverage -lgcov" while linking. Once i
get the rpm files, i m installing it and running the application.

As I start the application in console, it displays that the app is started
and returns to console but the process continues to run in background.

The problem is that it is generating gcda files only between starting the
app and returning to console. Later if I run testcases against the app which
is running in the background, it is not generating/updating the gcda files,
so I m unable to get code coverage statistics for the testcases :(. Any help
to solve this issue is greatly appreciated.

Thanks in advance
-- 
View this message in context: http://old.nabble.com/Help-on--fprofile-arcs--ftest-coverage-tp29676296p29676296.html
Sent from the gcc - Help mailing list archive at Nabble.com.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux