Skip to content

genhtml: Support relative source filenames in SF keys#1

Closed
pwithnall wants to merge 1 commit intolinux-test-project:masterfrom
pwithnall:relative-sf
Closed

genhtml: Support relative source filenames in SF keys#1
pwithnall wants to merge 1 commit intolinux-test-project:masterfrom
pwithnall:relative-sf

Conversation

@pwithnall
Copy link

Some tools which generate .info files generate relative filenames for
the ‘SF’ keys. For example, nodeunit’s lcov output does. When genhtml is
run with --output-directory, it calls chdir() which breaks relative
lookup of the source files. Fix that by resolving all source filenames
to absolute paths when loading an info file, resolving any relative ones
using the info file’s path as a base.

Some tools which generate .info files generate relative filenames for
the ‘SF’ keys. For example, nodeunit’s lcov output does. When genhtml is
run with --output-directory, it calls chdir() which breaks relative
lookup of the source files. Fix that by resolving all source filenames
to absolute paths when loading an info file, resolving any relative ones
using the info file’s path as a base.

Signed-off-by: Philip Withnall <[email protected]>
@pwithnall
Copy link
Author

Updated to add info() call, resolve relative to CWD, and add a signed-off-by line.

@pwithnall
Copy link
Author

This was committed as 2a634f6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants