summaryrefslogtreecommitdiffstats
path: root/tests/auto/qlocalsocket
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2010-06-10 14:16:24 +0200
committerJoerg Bornemann <joerg.bornemann@nokia.com>2010-06-10 15:31:19 +0200
commit073d04f1c2c5dc7020469bfc92708dce634f4779 (patch)
treeb482b622bc5af19fa9419663b2b8de1634b5e1a2 /tests/auto/qlocalsocket
parent98da12415aa8bb7497120cd841e7a798e3e5206e (diff)
QLocalSocket: don't emit readChannelFinished() twice on Windows
Reviewed-by: ossi
Diffstat (limited to 'tests/auto/qlocalsocket')
-rw-r--r--tests/auto/qlocalsocket/tst_qlocalsocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qlocalsocket/tst_qlocalsocket.cpp b/tests/auto/qlocalsocket/tst_qlocalsocket.cpp
index 87a30c2186..d2cba6ecb5 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);
}