[MDEV-25915] dgcov --generate error Created: 2021-06-14 Updated: 2021-06-21 Resolved: 2021-06-21 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.5.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Anel Husakovic | Assignee: | Anel Husakovic |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | dgcov | ||
| Issue Links: |
|
||||||||||||
| Description |
|
Based on documentation:
Meaning if no changes and args in usage of dgcov than changes from last commit should be presented. serg can you please confirm above? |
| Comments |
| Comment by Sergei Golubchik [ 2021-06-17 ] | |||||||||||||
|
Nope. Works fine for me. Check the code. It has
obvisouly, it means either a diff for HEAD and if it's empty, a diff for HEAD^. Meaning, print_gcov_for_diff() should return whether a diff is empty. It does
so it returns true if there was at least one diff --git line. Now run
manually and see what it returns for you. When it's empty, dgcov.pl correctly tries HEAD^ for me, as expected. | |||||||||||||
| Comment by Anel Husakovic [ 2021-06-21 ] | |||||||||||||
|
Ahh I was confused with last commit in help. Expected to see git show somewhere missed git diff HEAD^ what is the actually git show without commit message. |