mavak / trucov

True coverage tool for C / C++
1 stars 1 forks source link

render command is broken #100

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run trucov's render command over one or more coverage files
2. Notice the "error: basic_string::erase" error

What is the expected output? What do you see instead?
A single coverage pdf or svg should be generated.

NOTES:
This error is occurring because tru_utility's get_rel_path is being passed
in "coverage" for the path string. get_rel_path() then proceeds to
iteratively erase a character off of the cwd (tmp_str) until it's empty and
then tries to erase an empty string, which results in the error.

get_rel_path shouldn't be passed an invalid path string, obviously
"coverage" is an invalid path.

It looks like this originates from when generate_file() calls on
create_render_file(), so I'm assigning this to Matt.

Ye might also want to do a check for an empty string before he attempts an
erase as well.

Original issue reported on code.google.com by william....@gmail.com on 29 Aug 2009 at 3:20

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r565.

Original comment by millerlyte87@gmail.com on 31 Aug 2009 at 7:39

GoogleCodeExporter commented 9 years ago
Pass output_dir/coverage path now.

Original comment by millerlyte87@gmail.com on 31 Aug 2009 at 7:42

GoogleCodeExporter commented 9 years ago
Verified

Original comment by william....@gmail.com on 4 Sep 2009 at 2:39