We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://stackoverflow.com/questions/12704543/memory-leak-when-using-google-test-on-windows
The text was updated successfully, but these errors were encountered:
At the top:
#define _CRTDBG_MAP_ALLOC #include <crtdbg.h> #include <stdlib.h>
above "namespace {":
int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); // dummy run to force all gtest allocations RUN_ALL_TESTS();
_CrtMemState memoryState = {0}; _CrtMemCheckpoint(&memoryState);
int retval = RUN_ALL_TESTS(); std::cout << "hello rick" << std::endl;
// Check for leaks after tests have run _CrtMemDumpAllObjectsSince(&memoryState);
return retval; }
Sorry, something went wrong.
Also need to remove EXPECT_EQ from tests that are running. That call seems to leak memory.
No branches or pull requests
https://stackoverflow.com/questions/12704543/memory-leak-when-using-google-test-on-windows
The text was updated successfully, but these errors were encountered: