2016-06-06 3 views
0

어떤 종류의 오류가 발생했을 수 있습니까? 현재 Cygwin에서 lcov를 사용하고 있으며 gcc 또는 다른 Linux 명령을 사용할 때 지정된 경로에 액세스/읽기/쓰기 문제가 발생하지 않습니다.내 Lcov 명령이 디렉토리에 쓸 수 없습니까?

그냥 내 정확한 과정을 보여주기 위해 ...

[email protected] /cygdrive/c/Users/caffeine/My Documents/$gcc -Wall -fprofile-arcs -ftest-coverage -o cov.exe cov.c 

[email protected] /cygdrive/c/Users/caffeine/My Documents/$ ./cov.exe 

[email protected] /cygdrive/c/Users/caffeine/My Documents/$ lcov --capture --directory c:/Users/caffeine/My\ Documents --output-file coverage.info 

는 ***** 마지막 명령은 콘솔이 출력을 제공하고, 나는 그것을

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!

아이디어가 있으십니까?

+0

이것은 프로그래밍 문제는 아니지만 시스템 문제입니다. – KevinDTimm

+0

lcov가 cygwin 프로그램이 아닌 것처럼 보입니다. --directory 'c : \ Users \ caffeine \ My Documents' ' – matzeri

+0

lcov를 사용하여 코드 커버리지가보고되는 동안 [ERROR]가 중복 될 수 있습니다. (https://stackoverflow.com/questions/ 37675961/error-while-code-coverage-report-using-lcov) –

답변

0

this question과 같은 문제가 발생합니다.

이전에이 오류 메시지로 연결되는 bug in lcov 1.12이있었습니다. 다행히도 이제는 해결되었습니다. 1.13으로 업그레이드하면 문제가 해결됩니다.