diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2017-08-10 23:33:47 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2017-10-16 16:28:11 -0400 |
commit | 421167362242ce1fb46d6d720798787e7cd65aad (patch) | |
tree | 5f0c2620cd7364cd66404ca8a3433bb55d1291b3 /src/backend/utils | |
parent | cf5ba7c30c0428f5ff49197ec1e0f052035300d6 (diff) | |
download | postgresql-421167362242ce1fb46d6d720798787e7cd65aad.tar.gz postgresql-421167362242ce1fb46d6d720798787e7cd65aad.zip |
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>
Diffstat (limited to 'src/backend/utils')
-rw-r--r-- | src/backend/utils/misc/guc-file.l | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/utils/misc/guc-file.l b/src/backend/utils/misc/guc-file.l index f01b814c6ed..3de8e791f21 100644 --- a/src/backend/utils/misc/guc-file.l +++ b/src/backend/utils/misc/guc-file.l @@ -57,6 +57,8 @@ static void record_config_file_error(const char *errmsg, static int GUC_flex_fatal(const char *msg); static char *GUC_scanstr(const char *s); +/* LCOV_EXCL_START */ + %} %option 8bit @@ -107,7 +109,7 @@ STRING \'([^'\\\n]|\\.|\'\')*\' %% - +/* LCOV_EXCL_STOP */ /* * Exported function to read and process the configuration file. The |