summaryrefslogtreecommitdiffstats
path: root/tests/auto/qcopchannel
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2009-09-23 15:01:44 +0200
committerPaul Olav Tvete <paul.tvete@nokia.com>2009-09-23 15:02:05 +0200
commita33c1ca39ef8cb2485dbde3c0454873f58c0b733 (patch)
tree1db3390ad00feaa803523b2a1672e073d1b647c5 /tests/auto/qcopchannel
parent0cb5038a3e5d3a6b0c33d081b89c6fe47cfc0b1b (diff)
Try to stabilize this test
Diffstat (limited to 'tests/auto/qcopchannel')
-rw-r--r--tests/auto/qcopchannel/tst_qcopchannel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qcopchannel/tst_qcopchannel.cpp b/tests/auto/qcopchannel/tst_qcopchannel.cpp
index 93d037ecb6..9a3be6cdb5 100644
--- a/tests/auto/qcopchannel/tst_qcopchannel.cpp
+++ b/tests/auto/qcopchannel/tst_qcopchannel.cpp
@@ -49,6 +49,7 @@
#include <QCopChannel>
#include <QProcess>
+#include "../../shared/util.h"
class tst_QCopChannel : public QObject
{
@@ -110,7 +111,7 @@ void tst_QCopChannel::sendreceivemp()
testSend(channelName, "msg", "data");
QApplication::processEvents();
- QCOMPARE(spy.count(), 1);
+ QTRY_COMPARE(spy.count(), 1);
QList<QVariant> args = spy.takeFirst();
QCOMPARE(args.at(0).toString(), QString("msg"));
@@ -134,7 +135,7 @@ void tst_QCopChannel::sendreceivesp()
QCOMPARE(spy.count(), 0);
QCopChannel::send(channelName, "msg", "data");
QApplication::processEvents();
- QCOMPARE(spy.count(), 1);
+ QTRY_COMPARE(spy.count(), 1);
QList<QVariant> args = spy.takeFirst();
QCOMPARE(args.at(0).toString(), QString("msg"));