-1

What might be causing this sort of error? I am currently using lcov with Cygwin, and do not encounter any issues accessing/reading-from/writing-to the specified path when using gcc or any other Linux commands.

Just to demonstrate my exact process...

caffeine@ENG-INT /cygdrive/c/Users/caffeine/My Documents/$gcc -Wall -fprofile-arcs -ftest-coverage -o cov.exe cov.c

caffeine@ENG-INT /cygdrive/c/Users/caffeine/My Documents/$ ./cov.exe

caffeine@ENG-INT /cygdrive/c/Users/caffeine/My Documents/$ lcov --capture --directory c:/Users/caffeine/My\ Documents --output-file coverage.info

*****That last command gives this output to the console, and I cannot wrap my head around it

Capturing coverage data from c:/Users/caffeine/My Documents
Found gcov version: 5.3.0
Scanning c:/Users/caffeine/My Documents for .gcda files ...
Found 1 data files in c:/Users/caffeine/My Documents
Processing cov.gcda

geninfo:

ERROR: cannot write to directory /cygdrive/c/Users/caffeine/My Documents/c:/Users/caffeine/My Documents!

Any ideas?

Auguste
  • 2,007
  • 2
  • 17
  • 25
Caffeine
  • 1
  • 1

1 Answers1

0

Looks like the same problem as in this question.

There used to be a bug in lcov 1.12 that lead to this error messsage. Fortunately, it is fixed now. Upgrading to 1.13 should fix the problem.

Philipp Claßen
  • 41,306
  • 31
  • 146
  • 239