lcov icon indicating copy to clipboard operation
lcov copied to clipboard

'pwd'; # Current working directory is not working for windows

Open ashish95705 opened this issue 8 years ago • 3 comments

Hi,

I am using windows LCOV package and there in lcov.perl and geninfo.perl scripts , our $cwd = 'pwd'; # Current working directory is used.

When executed on windows cmd prompt, it giving error - pwd is not recognized as internal or external command. Tried to use $cwd=getcwd. Once i use it, lcov.info is not getting generated, however, gcda files exists.

Please help us in solving this issue.

ashish95705 avatar Apr 19 '16 14:04 ashish95705

Hi, could you please provide console output? Also if you do not have pwd, you could type manually path to dir or use http://stackoverflow.com/questions/921741/windows-equivalent-to-unix-pwd

valbok avatar Apr 20 '16 13:04 valbok

Had the same issue fixed with your suggested link.

http://stackoverflow.com/a/921762

pennam avatar Jul 13 '16 09:07 pennam

I had same problem. Changing:

our $cwd = `pwd`;    # Current working directory

to:

our $cwd = `cd`;    # Current working directory

Solved all problems. Only HTML output is bugged, but I only needed .info anyway.

tehKaiN avatar Aug 10 '18 09:08 tehKaiN