How to detect memory leak using gTest in C++ on Linux platform -


i new gtest. have load of functions have gtest unit test cases.

i want add functionality detect memory leaks in orginal functions inside unit test cases exist.

is there way perform this?

regards, mahendra

googletest not sort of tool detecting memory leaks. unit-testing tests run-time functionality of software elements. detecting memory leaks in compiled application calls dynamic analysis of execution @ binary level in conjunction debugging information generated compiler , linker.

there tools detecting memory leaks, used independently of unit-testing framework. linux, commonplace choice valgrind. provided in package repositories of distro , able install package manager. if use ide may support valgrind integration via plugin or other means.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -