From df54d6c55d298ce6ca7ab6282cd935983e4d0eff Mon Sep 17 00:00:00 2001 From: Sergey Yershov Date: Tue, 9 Feb 2016 17:53:47 +0300 Subject: [PATCH] [new downloader] Fix event loop for tests --- testing/testingmain.cpp | 4 ++-- 1 file 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 #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