2022-05-13 23:42:41 -04:00
|
|
|
#include <gtest/gtest.h>
|
|
|
|
|
#include "test.c"
|
|
|
|
|
#include "Bullet3Common/b3Logging.h"
|
|
|
|
|
|
|
|
|
|
void myprintf(const char* bla)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-03 15:08:51 +01:00
|
|
|
int main(int argc, char** argv)
|
|
|
|
|
{
|
|
|
|
|
b3SetCustomPrintfFunc(myprintf);
|
|
|
|
|
b3SetCustomWarningMessageFunc(myprintf);
|
2022-05-13 23:42:41 -04:00
|
|
|
|
|
|
|
|
#if _MSC_VER
|
2026-06-03 15:08:51 +01:00
|
|
|
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
|
|
|
|
|
//void *testWhetherMemoryLeakDetectionWorks = malloc(1);
|
2022-05-13 23:42:41 -04:00
|
|
|
#endif
|
2026-06-03 15:08:51 +01:00
|
|
|
::testing::InitGoogleTest(&argc, argv);
|
|
|
|
|
return RUN_ALL_TESTS();
|
2022-05-13 23:42:41 -04:00
|
|
|
}
|