summaryrefslogtreecommitdiff
path: root/sql/transaction.cc
diff options
context:
space:
mode:
authorAnel Husakovic <anel@mariadb.org>2019-11-18 19:01:20 +0100
committerAnel Husakovic <anel@mariadb.org>2019-11-19 15:00:48 +0100
commit00f9df29224ada9cdbb796c99f4c2ae3f227db73 (patch)
treebc4e87ee7566dbe6382d1cf79456e3ff7adf2321 /sql/transaction.cc
parent6718d3bc3241f72e07504133371cf3813d2e6fe9 (diff)
downloadmariadb-git-bb-10.2-anel-MDEV-20787.tar.gz
MDEV-20787: Script dgcov.pl does not workbb-10.2-anel-MDEV-20787
Let's change CMakeList with `--coverage` flag as an alias for `-fprofile-arcs -ftest-coverage -lgcov` in addition. When the server is compiled with `-DENABLE_GCOV=ON`, from object files are generated `.gcno` and `.gcda` files. `./mtr --gcov is_check_constraint` is invoking the script calls `./dgcov.pl --purge`, `./mtr is_check_constraint`, `./dgcov.pl --generate>/var/last_changes.dgcov`. The `purge` flag is clearing `.gcda` files (and others extensions), while running the test new `.gcda` files are obtained. With `generate` flag, `gcov -i` (`intermediate format`) is called on obtained `<object-files-name>.gcda` files (`dbug.c.gcda` e.g.). The patch is tested on `gcov 6.3` and `gcov 7.4` versions and can be seen that resulting `.gcov` file for `6.3` creates `<full path>.gcov` (`dbug.c.gcda.gcov` e.g.) file, where `gcov 7.4` is still creating `object-file-names.gcov`(`dbug.c.gcov`) files as `gcov` in general is doing.
Diffstat (limited to 'sql/transaction.cc')
0 files changed, 0 insertions, 0 deletions