gtestwrap.cpp 470 B

1234567891011121314151617181920212223
  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. b3SetCustomPrintfFunc(myprintf);
  9. b3SetCustomWarningMessageFunc(myprintf);
  10. #if _MSC_VER
  11. _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
  12. //void *testWhetherMemoryLeakDetectionWorks = malloc(1);
  13. #endif
  14. ::testing::InitGoogleTest(&argc, argv);
  15. return RUN_ALL_TESTS();
  16. }