gtestwrap.cpp 437 B

1234567891011121314151617181920
  1. #include <gtest/gtest.h>
  2. #include "test.c"
  3. #include "Bullet3Common/b3Logging.h"
  4. void myprintf(const char* bla)
  5. {
  6. }
  7. int main(int argc, char** argv)
  8. {
  9. b3SetCustomPrintfFunc(myprintf);
  10. b3SetCustomWarningMessageFunc(myprintf);
  11. #if _MSC_VER
  12. _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
  13. //void *testWhetherMemoryLeakDetectionWorks = malloc(1);
  14. #endif
  15. ::testing::InitGoogleTest(&argc, argv);
  16. return RUN_ALL_TESTS();
  17. }