dmd test coverage

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 28 11:35:12 PST 2014


On Fri, Nov 28, 2014 at 11:32:25AM -0800, H. S. Teoh via Digitalmars-d wrote:
> On Thu, Nov 27, 2014 at 09:05:16PM -0800, Walter Bright via Digitalmars-d wrote:
> > On 11/27/2014 4:54 PM, H. S. Teoh via Digitalmars-d wrote:
> > >How do I locally test dmd for coverage? I have a fix for the missing
> > >coverage for version.c, but I can't figure out how to test whether
> > >it's actually working.
> > 
> > In posix.mak for dmd, there's 'make gcov' to generate coverage data.
> 
> I get a whole bunch of errors that say 'cannot open notes file'.  What
> does that mean?
> 
> Also, don't I have to first compile dmd with --coverage and run the test
> suite before it has the coverage data??
[...]

Which I had tried (make -f posix.mak -j6 MODEL=64 CFLAGS=--coverage),
but the compilation aborts with:

	inifile.c:101:3: error: #error SYSCONFDIR not defined

which goes away when --coverage is not specified. What gives?


T

-- 
If creativity is stifled by rigid discipline, then it is not true creativity.


More information about the Digitalmars-d mailing list