This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: test case coverage ?
- To: dcb at pncl dot co dot uk, martin at mira dot isdn dot cs dot tu-berlin dot de
- Subject: Re: test case coverage ?
- From: mrs at wrs dot com (Mike Stump)
- Date: Thu, 16 Jul 1998 16:27:19 -0700
- Cc: egcs at cygnus dot com
> Date: Thu, 16 Jul 1998 09:27:00 +0200
> From: Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de>
> > I'm trying to find out what fraction of the G++ source code (gcc/cp/*.c)
> > is exercised by the current G++ test suite.
I've seen the results before...
> I haven't tried myself, but I agree that it would be extremely
> valuable to get these data.
Just use gcov, it really isn't all that hard. gcov is a neat and fun
tool.
> Not only would it allow to complete the test suite, but also to
> eliminate dead code.
This has been done in the past. It _is_ hard even for an expert to
tell what it really dead and what isn't. Code that has been executed
zero times isn't necessarily dead.