c++unit-testingmemory-leakstddgoogletest

GoogleTest and Memory Leaks


I'm surprised that Google C++ Testing Framework does not explicitly support checking for memory leaks. There is, however, a workaround for Microsoft Visual C++, but what about Linux?

If memory management is crucial for me, is it better to use another C++ unit-testing framework?


Solution

  • If memory management is crucial for me, is it better to use another C++ unit-testing framework?

    I don't know about C++ unit-testing, but I used Dr. memory, it works on Linux, Windows and Mac. If you have the symbols it even tells you in what line the memory leak happened! really usefull :D
    more info http://drmemory.org/