AdamNiederer / AdamNiederer/cov

Unable to find gcov files in /tmp folder.

Open
#54 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Emacs Lisp
Stars
96
Forks
20
PR merge metrics
No merged PRs in 30d

Description

# To Replicate

1. Write a hello world program main.C
2. Build with coverage activated
```
CC=g++ -g -01 -ftest-coverage -fprofile-arcs
$CC -c main.C
$CC main.o -o main.exe
```
3. Generate coverage files
```
./main.exe
gcov -b main.exe
```
4. Move coverage files to /tmp
5. Configure cov-coverage-file-paths
```
(add-to-list 'cov-coverage-file-paths "/tmp")
(add-to-list 'cov-coverage-file-paths
#’(lambda (file-dir file-name)
(let ((try (format "%s/%s%s"
"/tmp" file-name
".gcov")))
(and (file-exists-p try)
(cons (file-truename try) ’gcov)))))
```
6. Activate cov-mode inside of main.C

# Output

In messages buffer
```
No coverage data found for /path/to/main.C
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.