mavak / trucov

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

--outdir doesn't behave as expected #114

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
with this directory structure
src/
   filename.cpp

trucov report -o tmp

produces a file

tmpsrc##filename.cpp

it should produce the file

tmp/
   src##filename.cpp

It looks as though the argument from outdir is just bing prefixed to output
name for the report command.  boost::filesystem should be used to
manipulate paths.  The library actually overloads the '/' operator to do
what you would expect.

using boost::filesystem::path;
path genarated_filename( "src##filename.cpp.trucov" );
path output_name = "tmp" / generated_filename;

Original issue reported on code.google.com by j.nick.terry@gmail.com on 9 Sep 2009 at 5:12

GoogleCodeExporter commented 9 years ago
this is also broken for render_report.  It may be broken for the others as well 
( I'd
actually hope they are sharing that code).

Original comment by j.nick.terry@gmail.com on 9 Sep 2009 at 5:13

GoogleCodeExporter commented 9 years ago
Assigned to Ye

Original comment by millerlyte87@gmail.com on 14 Sep 2009 at 3:59

GoogleCodeExporter commented 9 years ago

Original comment by millerlyte87@gmail.com on 14 Sep 2009 at 3:59

GoogleCodeExporter commented 9 years ago

Original comment by yekyaw.wsu@gmail.com on 20 Sep 2009 at 1:37

GoogleCodeExporter commented 9 years ago
ouput dir is changing directories correctly. Filenames are still wrong but 
output dir
is working. Verified.

Original comment by millerlyte87@gmail.com on 20 Sep 2009 at 5:05