pgsql: Exclude flex-generated code from coverage testing

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Exclude flex-generated code from coverage testing
Date: 2017-10-16 20:50:46
Message-ID: E1e4CLW-0004jP-EE@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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(dot)paquier(at)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-10-16 21:57:00 pgsql: Fix incorrect handling of CTEs and ENRs as DML target relations.
Previous Message Tom Lane 2017-10-16 20:02:59 pgsql: Treat aggregate direct arguments as per-agg data not per-trans d