Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!olivea!decwrl!mcnc!borg!homer!leech From: leech@homer.cs.unc.edu (Jonathan Leech) Newsgroups: comp.lang.c++ Subject: Re: Looking for C++ code coverage tools Message-ID: <110@borg.cs.unc.edu> Date: 9 Jan 91 16:08:32 GMT References: <5483@exodus.Eng.Sun.COM> Sender: news@cs.unc.edu Reply-To: leech@homer.cs.unc.edu (Jonathan Leech) Organization: University of North Carolina, Chapel Hill Lines: 14 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 __@/