diff options
author | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-09-23 13:01:44 (GMT) |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-09-23 13:02:05 (GMT) |
commit | a33c1ca39ef8cb2485dbde3c0454873f58c0b733 (patch) | |
tree | 1db3390ad00feaa803523b2a1672e073d1b647c5 | |
parent | 0cb5038a3e5d3a6b0c33d081b89c6fe47cfc0b1b (diff) | |
download | Qt-a33c1ca39ef8cb2485dbde3c0454873f58c0b733.zip Qt-a33c1ca39ef8cb2485dbde3c0454873f58c0b733.tar.gz Qt-a33c1ca39ef8cb2485dbde3c0454873f58c0b733.tar.bz2 |
Try to stabilize this test
-rw-r--r-- | tests/auto/qcopchannel/tst_qcopchannel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qcopchannel/tst_qcopchannel.cpp b/tests/auto/qcopchannel/tst_qcopchannel.cpp index 93d037e..9a3be6c 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")); |