mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
2310f9bce7
commit
f1dc3eca2f
2 changed files with 9 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue