memory leak unit test c++

后端 未结 6 1254
天涯浪人
天涯浪人 2021-01-05 18:15

I have just resolved a memory leak in my application and now I want to write a unit test to ensure that this does not happen again.

I\'m look for a way to detect th

6条回答
  •  孤独总比滥情好
    2021-01-05 18:42

    Boost.Test will automatically tell you at the end of a test run if any of your unit tests leaked memory.

    I don't know if any of the other C++ unit testing frameworks provide this kind of functionality.

提交回复
热议问题