开发者

Debugger automation/scripting on Linux?

I have a small C++ program that parses a file given as a command line argument. I want to create couple of test files and feed them to the program to make sure it does not crash when it reads malfomed files. I am looking to automate this process as I will have couple of hundred test files, either through GDB or something else.

Any tip开发者_如何学Gos?

Thank you


I think you can use bash or python for such scripts. For debugging you can just turn on core dump files generation and check what went wrong after the test is done.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜