Commit 25ff79c
committed
geninfo: Add workaround for MSYS GCC problem
Some versions of MSYS GCC include support for generating JSON
intermediate output format but incorrectly encode backslashes as \n:
$ gcov -i example.gcda -t
{
"gcc_version": "9.2.0",
[...]
"current_working_directory": "C:\nTemp\nlcov\nexample",
"data_file": "example.gcda"
}
This causes geninfo to abort when trying to collect coverage data:
Processing example.gcda
geninfo: Unsuccessful open on filename containing newline at bin/geninfo line 2905.
geninfo: WARNING: could not open C:
Temp
lcov
example/example.c
Fix this by converting newlines in filenames on MSYS to /.
Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Reported-by: fang.g@bigforce.cn1 parent d666bae commit 25ff79c
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2160 | 2160 | | |
2161 | 2161 | | |
2162 | 2162 | | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
2163 | 2169 | | |
2164 | 2170 | | |
2165 | 2171 | | |
| |||
0 commit comments