-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
To Replicate
- Write a hello world program main.C
- Build with coverage activated
CC=g++ -g -01 -ftest-coverage -fprofile-arcs
$CC -c main.C
$CC main.o -o main.exe
- Generate coverage files
./main.exe
gcov -b main.exe
- Move coverage files to /tmp
- 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)))))
- Activate cov-mode inside of main.C
Output
In messages buffer
No coverage data found for /path/to/main.C
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels