rdmd -cov generates bad file names with absolute directories or .. directories in -I flag
Andrej Mitrovic
andrej.mitrovich at gmail.com
Mon Mar 18 14:00:53 PDT 2013
On 3/18/13, timotheecour <timothee.cour2 at gmail.com> wrote:
> rdmd -cov /Users/timothee/test/test_01.d
> creates a file "-Users-timothee-test-test_01.lst"
>
> A)
> This leading "-" in filename is very unix unfriendly
It's not an RDMD issue, it's Druntime. Specifically the baseName
function in src/rt/cover.d. This can easily be fixed.
> B)
> Can the file location be improved?
> For example, replacing "-" with "_", and converting paths to use
> "buildNormalizedPath" to avoid ".." or "." in filename.
The problem is Druntime can't have dependencies to Phobos.
> Also, why not add dmd flag : -covd=dirname, in which all lst
> files will be generated?
This could be an enhancement. Or we could make cov generation follow
the -od switch.
More information about the Digitalmars-d-learn
mailing list