helpGNU C Compiler - Support: sr #105666, gcov functionality should be a...


sr #105666: gcov functionality should be a library for use by unit test programs

Submitted by:  None
Submitted on:  Thu 09 Nov 2006 01:24:18 PM UTC  
Category:  None Priority:  5 - Normal
Severity:  1 - Wish Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Thu 09 Nov 2006 01:24:18 PM UTC, original submission:

I'm using 'gcov' for code coverage with the 'check' suite for unit testing. It strikes me that both 'check', 'c-unit' and 'autounit'(?) could all use the functionality of 'gcov' if it was in a library to test if the amount of code execute was acceptable.

If the new library had a function call:-

int gcovget_coverage( const char *filename );

A new command for 'check' could be:-

fail_unless( gcovget_coverage( "func.c" ) >= 90, NULL );

which in 'check' speak would mean if the coverage of the source file 'func.c' tested was less than 90% then throw an error.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2006-11-09 None Carbon-Copy- => Added -unavailable-

Back to the top

Powered by Savane 3.3