Bazaar: plain GTest leaks ignored only on windows.

git-svn-id: svn://ultimatepp.org/upp/trunk@15023 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
klugier 2020-09-12 15:43:49 +00:00
parent 2310f9bce7
commit f1dc3eca2f
2 changed files with 9 additions and 2 deletions

View file

@ -1,5 +1,5 @@
#ifndef _GoogleTestExample_VectorTest_h_
#define _GoogleTestExample_VectorTest_h_
#ifndef _GTestExample_StringTest_h_
#define _GTestExample_StringTest_h_
#include <Core/Core.h>
#include <plugin/gtest/gtest.h>

View file

@ -3,11 +3,18 @@
#include <Core/config.h>
#if defined(PLATFORM_WIN32) || defined(PLATFORM_WIN64)
#define TEST_APP_MAIN_IGNORE_LEAKS Upp::MemoryIgnoreLeaksBlock __;
#else
#define TEST_APP_MAIN_IGNORE_LEAKS
#endif
#define TEST_APP_MAIN \
void TestMainFn(); \
\
int main(int argc, char** argv) \
{ \
TEST_APP_MAIN_IGNORE_LEAKS \
UPP::AppInit__(argc, (const char **)argv); \
testing::InitGoogleTest(&argc, argv); \
UPP::AppExecute__(TestMainFn); \