Share

Linux Test Project

Tracker: Bugs

5 lcov: geninfo chokes on spaces in the directory name - ID: 2152361
Last Update: Settings changed ( subrata_modak )

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.


Jeff Connelly aka shellreef ( jeffconnelly ) - 2008-10-07 23:50

5

Closed

Accepted

Nobody/Anonymous

Tools

None

Public


Comments ( 2 )

Date: 2008-10-10 07:57
Sender: oberpapr

Applied to CVS version. Thanks!


Date: 2008-10-07 23:50
Sender: jeffconnelly

File Added: geninfo-space.patch


Attached File ( 1 )

Filename Description Download
geninfo-space.patch allow spaces in directory name for geninfo Download

Changes ( 4 )

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