[comp.lang.c++] Looking for C++ code coverage tools

emarsh@hernes-sun.Eng.Sun.COM (Eric Marsh) (01/09/91)

Can anyone recommend a good code coverage tool for C++ on Sun?

 Thanks, 

    Eric

leech@homer.cs.unc.edu (Jonathan Leech) (01/10/91)

In article <5483@exodus.Eng.Sun.COM>, emarsh@hernes-sun.Eng.Sun.COM
(Eric Marsh) writes:
|>Can anyone recommend a good code coverage tool for C++ on Sun?

	You can use the -a option of the Sun C compiler. There is a problem
with the Sun version of AT&T's product because it generates the intermediate
.c file in a transient subdirectory which is deleted. The .d file containing
line counts is also, unfortunately, deleted, so editing the CC script is
needed. We have a bug in to Sun about this, perhaps you could encourage them
to hurry up and fix it :-)
	Once you manage to retain the .d files, tcov works fine.
	Jon
	__@/