summaryrefslogtreecommitdiffstats
path: root/tests/auto/qeventloop
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@nokia.com>2009-08-10 15:03:42 +0200
committerLiang Qi <liang.qi@nokia.com>2009-08-10 15:03:42 +0200
commit7868384261dd74f8cf44684a69fe095957bafd4b (patch)
treeb2474895012ec6f5c21baf9f601d9ed71d745faa /tests/auto/qeventloop
parent43d7bec69c7eb42b2c86d3f3b716245e069865e9 (diff)
Make eventloop autotest compile for windows.
Diffstat (limited to 'tests/auto/qeventloop')
-rw-r--r--tests/auto/qeventloop/tst_qeventloop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qeventloop/tst_qeventloop.cpp b/tests/auto/qeventloop/tst_qeventloop.cpp
index 6b113e0ef2..fe0d1c22cd 100644
--- a/tests/auto/qeventloop/tst_qeventloop.cpp
+++ b/tests/auto/qeventloop/tst_qeventloop.cpp
@@ -222,6 +222,7 @@ void tst_QEventLoop::init()
void tst_QEventLoop::cleanup()
{ }
+#ifdef Q_OS_SYMBIAN
class OnlySymbianActiveScheduler_helper : public QObject
{
Q_OBJECT
@@ -243,10 +244,8 @@ public slots:
// Let all the events occur twice so we know they reactivated after
// each occurrence.
if (++timerCount >= 2) {
-#ifdef Q_OS_SYMBIAN
// This will hopefully run last, so stop the active scheduler.
CActiveScheduler::Stop();
-#endif
}
}
void zeroTimerSlot()
@@ -270,6 +269,7 @@ private:
int zeroTimerCount;
int notifierCount;
};
+#endif
void tst_QEventLoop::onlySymbianActiveScheduler() {
#ifndef Q_OS_SYMBIAN