summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@nokia.com>2009-08-10 13:03:42 (GMT)
committerLiang Qi <liang.qi@nokia.com>2009-08-10 13:03:42 (GMT)
commit7868384261dd74f8cf44684a69fe095957bafd4b (patch)
treeb2474895012ec6f5c21baf9f601d9ed71d745faa /tests/auto
parent43d7bec69c7eb42b2c86d3f3b716245e069865e9 (diff)
downloadQt-7868384261dd74f8cf44684a69fe095957bafd4b.zip
Qt-7868384261dd74f8cf44684a69fe095957bafd4b.tar.gz
Qt-7868384261dd74f8cf44684a69fe095957bafd4b.tar.bz2
Make eventloop autotest compile for windows.
Diffstat (limited to 'tests/auto')
-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 6b113e0..fe0d1c2 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