diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2010-06-10 12:16:24 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2010-06-10 13:31:19 (GMT) |
commit | 073d04f1c2c5dc7020469bfc92708dce634f4779 (patch) | |
tree | b482b622bc5af19fa9419663b2b8de1634b5e1a2 /tests | |
parent | 98da12415aa8bb7497120cd841e7a798e3e5206e (diff) | |
download | Qt-073d04f1c2c5dc7020469bfc92708dce634f4779.zip Qt-073d04f1c2c5dc7020469bfc92708dce634f4779.tar.gz Qt-073d04f1c2c5dc7020469bfc92708dce634f4779.tar.bz2 |
QLocalSocket: don't emit readChannelFinished() twice on Windows
Reviewed-by: ossi
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qlocalsocket/tst_qlocalsocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qlocalsocket/tst_qlocalsocket.cpp b/tests/auto/qlocalsocket/tst_qlocalsocket.cpp index 87a30c2..d2cba6e 100644 --- a/tests/auto/qlocalsocket/tst_qlocalsocket.cpp +++ b/tests/auto/qlocalsocket/tst_qlocalsocket.cpp @@ -1004,7 +1004,7 @@ void tst_QLocalSocket::writeToClientAndDisconnect() timeout -= timestep; } while (!readChannelFinishedSpy.count() && timeout > 0); - QVERIFY(!readChannelFinishedSpy.isEmpty()); + QCOMPARE(readChannelFinishedSpy.count(), 1); QCOMPARE(client.read(buffer, sizeof(buffer)), (qint64)sizeof(buffer)); QCOMPARE(client.state(), QLocalSocket::UnconnectedState); } |