On 11/28/2014 11:35 AM, H. S. Teoh via Digitalmars-d wrote:
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?
I don't know. Haven't tried it in a while, likely it is suffering from bit rot.