diff options
author | Sergey Yershov <yershov@corp.mail.ru> | 2016-02-09 17:53:47 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:22:00 +0300 |
commit | df54d6c55d298ce6ca7ab6282cd935983e4d0eff (patch) | |
tree | 65e5698e26a80e928bc7496428cf65f9874ae622 /testing | |
parent | 6d53e915aa971c7ed662cfee6cec73f8cbd8d04e (diff) |
[new downloader] Fix event loop for tests
Diffstat (limited to 'testing')
-rw-r--r-- | testing/testingmain.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/testingmain.cpp b/testing/testingmain.cpp index 24726f1384..a8d484b6f9 100644 --- a/testing/testingmain.cpp +++ b/testing/testingmain.cpp @@ -21,7 +21,7 @@ # include "platform/platform.hpp" #endif -#ifdef OMIM_UNIT_TEST_WITH_QT_EVENT_LOOP +#if defined(OMIM_UNIT_TEST_WITH_QT_EVENT_LOOP) && !defined(OMIM_OS_IPHONE) #include <QtCore/Qt> #ifdef OMIM_OS_MAC // on Mac OS X native run loop works only for QApplication :( #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) @@ -133,7 +133,7 @@ CommandLineOptions const & GetTestingOptions() int main(int argc, char * argv[]) { -#ifdef OMIM_UNIT_TEST_WITH_QT_EVENT_LOOP +#if defined(OMIM_UNIT_TEST_WITH_QT_EVENT_LOOP) && !defined(OMIM_OS_IPHONE) QAPP theApp(argc, argv); UNUSED_VALUE(theApp); #else |