Exteor/test/stdafx.cpp
2024-06-07 20:30:06 +03:00

17 lines
423 B
C++

#include "stdafx.h"
// Main function for test setup
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
// Get a checkpoint of the memory after Google Test has been initialized.
_CrtMemState memoryState = { 0 };
_CrtMemCheckpoint(&memoryState);
const auto retval = RUN_ALL_TESTS();
// Check for leaks after tests have run
_CrtMemDumpAllObjectsSince(&memoryState);
return retval;
}