| 29 | #endif |
| 30 | |
| 31 | int main(int argc, char **argv) { |
| 32 | ::testing::InitGoogleTest(&argc, argv); |
| 33 | |
| 34 | std::cout << "RapidJSON v" << RAPIDJSON_VERSION_STRING << std::endl; |
| 35 | |
| 36 | #ifdef _MSC_VER |
| 37 | _CrtMemState memoryState = { 0 }; |
| 38 | (void)memoryState; |
| 39 | _CrtMemCheckpoint(&memoryState); |
| 40 | //_CrtSetBreakAlloc(X); |
| 41 | //void *testWhetherMemoryLeakDetectionWorks = malloc(1); |
| 42 | #endif |
| 43 | |
| 44 | int ret = RUN_ALL_TESTS(); |
| 45 | |
| 46 | #ifdef _MSC_VER |
| 47 | // Current gtest constantly leak 2 blocks at exit |
| 48 | _CrtMemDumpAllObjectsSince(&memoryState); |
| 49 | #endif |
| 50 | return ret; |
| 51 | } |
nothing calls this directly
no outgoing calls
no test coverage detected