Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
10.2(EOL)
Description
Based on documentation:
Usage:
|
$0 \[options\] \[git diff arguments\]
|
The dgcov program runs gcov for code coverage analysis, and reports missing
|
coverage only for those lines that are changed by the specified commit(s).
|
Commits are specified in the format of git diff arguments. For example:
|
* All unpushed commits: $0 \@{u} HEAD
|
* All uncommitted changes: $0 HEAD
|
* Specific commit: $0 <commit>^ <commit>
|
 |
If no arguments are specified, it prints the coverage for all uncommitted
|
changes, if any, otherwise for the last commit.
|
Meaning if no changes and args in usage of dgcov than changes from last commit should be presented.
If we debug: dgcov --generate>file and no git diff in our tree, we see that command that is invoked for printing:
git diff --no-prefix --ignore-space-change HEAD and it results in empty result in a file.
It should show changes from the last commit.
serg can you please confirm above?
Attachments
Issue Links
- relates to
-
MDEV-20787 Script dgcov.pl does not work
- Closed
-
MDEV-25914 gcda data files are not created when invoking the test for GCOV builds
- Closed