pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Exclude flex-generated code from coverage testing
Date: Mon, 16 Oct 2017 20:50:46 +0000
Message-ID: <E1e4CLW-0004jP-EE@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Exclude flex-generated code from coverage testing

Flex generates a lot of functions that are not actually used.  In order
to avoid coverage figures being ruined by that, mark up the part of the
.l files where the generated code appears by lcov exclusion markers.
That way, lcov will typically only reported on coverage for the .l file,
which is under our control, but not for the .c file.

Reviewed-by: Michael Paquier <michael.paquier@gmail.com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/421167362242ce1fb46d6d720798787e7cd65aad

Modified Files
--------------
contrib/cube/cubescan.l                   | 4 ++++
contrib/seg/segscan.l                     | 4 ++++
src/backend/bootstrap/bootscanner.l       | 3 +++
src/backend/parser/scan.l                 | 5 +++++
src/backend/replication/repl_scanner.l    | 3 +++
src/backend/replication/syncrep_scanner.l | 3 +++
src/backend/utils/misc/guc-file.l         | 4 +++-
src/bin/pgbench/exprscan.l                | 4 ++++
src/bin/psql/psqlscanslash.l              | 4 ++++
src/fe_utils/psqlscan.l                   | 4 ++++
src/interfaces/ecpg/preproc/pgc.l         | 6 ++++++
src/test/isolation/specscanner.l          | 4 ++++
12 files changed, 47 insertions(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1e4CLW-0004jP-EE@gemulon.postgresql.org>
Permalink:  ../E1e4CLW-0004jP-EE@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1e4CLW-0004jP-EE@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter_e@gmx.net
  Subject: Re: pgsql: Exclude flex-generated code from coverage testing
  In-Reply-To: <E1e4CLW-0004jP-EE@gemulon.postgresql.org>
  References: <E1e4CLW-0004jP-EE@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox