This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: test case coverage ?


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]