In lcov 1.6, geninfo fails to find gcno/gcda files if the source directory
has spaces in the name, because it uses backticks to shell out to "find",
passing $directory on the command-line.
Attached is a patch that double-quotes the variable, allowing geninfo to
operate on directories with spaces in their name. The fix isn't perfect; it
won't work on directories with a " character, but it works fine for my
purposes (I don't have any directories with quotes). A better fix would be
to use IPC::System::Simple's capturex from
http://search.cpan.org/~pjf/IPC-System-Simple-0.15/lib/IPC/System/Simple.pm
#runx(),_systemx()_and_capturex(). capturex() is a multiple-argument form
of the backticks, so it avoids any interpolation errors.
Nobody/Anonymous
Tools
None
Public
|
Date: 2008-10-10 07:57 Applied to CVS version. Thanks! |
|
Date: 2008-10-07 23:50 File Added: geninfo-space.patch |
| Filename | Description | Download |
|---|---|---|
| geninfo-space.patch | allow spaces in directory name for geninfo | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2008-11-18 09:53 | subrata_modak |
| resolution_id | None | 2008-11-18 09:53 | subrata_modak |
| close_date | - | 2008-11-18 09:53 | subrata_modak |
| File Added | 296507: geninfo-space.patch | 2008-10-07 23:50 | jeffconnelly |