summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qlocalsocket_win.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-07-07 16:00:43 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-20 00:22:07 +0200
commitbfc5bb09c4b79c17e1d846f6c46611d83cc7de4a (patch)
tree2b7425be3d51822aef08b909dc9459ad851952ce /src/network/socket/qlocalsocket_win.cpp
parent674e79416fefe7b5acf2a8c18d3c91d8feddcc18 (diff)
Ignore or suppress warning and debug messages in tst_QLocalSocket
The one in tst_QLocalSocket::writeToClientAndDisconnect just needed proper ordering: that's what waitForDisconnect is for. At the same time, we need to make sure we get the same message from all three implementations of QLocalSocket::waitForDisconnect (and without the useless space at the end). Change-Id: I21364263cf908df022df814a6a39fcb5783e84e6 Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Diffstat (limited to 'src/network/socket/qlocalsocket_win.cpp')
-rw-r--r--src/network/socket/qlocalsocket_win.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/socket/qlocalsocket_win.cpp b/src/network/socket/qlocalsocket_win.cpp
index c907ce6ada..96c6c0f6ea 100644
--- a/src/network/socket/qlocalsocket_win.cpp
+++ b/src/network/socket/qlocalsocket_win.cpp
@@ -378,8 +378,10 @@ bool QLocalSocket::waitForConnected(int msecs)
bool QLocalSocket::waitForDisconnected(int msecs)
{
Q_D(QLocalSocket);
- if (state() == UnconnectedState)
+ if (state() == UnconnectedState) {
+ qWarning("QLocalSocket::waitForDisconnected() is not allowed in UnconnectedState");
return false;
+ }
if (!openMode().testFlag(QIODevice::ReadOnly)) {
qWarning("QLocalSocket::waitForDisconnected isn't supported for write only pipes.");
return false;