Skip site navigation (1) Skip section navigation (2)

Re: code coverage patch

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Michelle Caisse <Michelle(dot)Caisse(at)sun(dot)com>
Subject: Re: code coverage patch
Date: 2008-08-28 10:56:03
Message-ID: 200808281356.03678.peter_e@gmx.net (view raw or flat)
Thread:
Lists: pgsql-hackers
Michelle Caisse wrote:
> gcov gets confused when source files are generated. I eliminated
> src/backend/bootstrap and ../parser from coverage analysis to avoid
> errors of this type.

The problem with those files is that the source file contains lines like this:

#line 1042 "y.tab.c"

but that source file does not exist, as it is renamed to gram.c.

We could fix that in one of two ways:

1) Use bison's -o option to put the output file in the right place directly, 
if we are dealing with bison (and don't bother to support code coverage 
analysis with other yaccs), or

2) Run a pattern replacement across the grammar output files as their are 
renamed.

Comments?

In response to

Responses

pgsql-hackers by date

Next:From: Hitoshi HaradaDate: 2008-08-28 11:09:21
Subject: Re: September Commit Fest coming soon!
Previous:From: Bernd HelmleDate: 2008-08-28 10:07:25
Subject: What happend to equality_oper()

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group