Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
unittest.cpp File Reference
#include "unittest.h"
#include "rapidjson/rapidjson.h"
Include dependency graph for unittest.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 31 of file unittest.cpp.

31 {
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}
#define RAPIDJSON_VERSION_STRING
Version of RapidJSON in "<major>.<minor>.<patch>" string format.
Definition rapidjson.h:78
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
Definition gtest.h:2328
char ** argv
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
Definition gtest.cc:5787
CK_RV ret
Here is the call graph for this function: