bugscpp icon indicating copy to clipboard operation
bugscpp copied to clipboard

Bug: In test command, nothing happens when --output-dir is empty

Open HansolChoe opened this issue 4 years ago • 2 comments

When you run tests, you can specify output directory using --output-dir option

Let's assume test-result is output directory. Test command is like below:

$ d++ test path\to\cppcheck\fixed#1 -v --output-dir=test-result

d++ just does nothing and stops without any message.

HansolChoe avatar Jan 28 '22 01:01 HansolChoe

This problem happens when -v and --output-dir are both used.

HansolChoe avatar Feb 14 '22 07:02 HansolChoe

If you not use --output-dir option, the default is set to the path obtained by getcwd(). So even if you just use -v option, the output directory will not be created.

Ye0nny avatar Mar 28 '22 00:03 Ye0nny