summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-12-03 11:46:33 +0100
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-12-03 15:03:17 +0000
commitd93a4158e0758541717bb90fce30c2f78b66de34 (patch)
tree90791390bc6def149649250b936e240bae4facec /tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp
parentba40d1a872dabb323c1c901929d5db6da1fc5059 (diff)
tst_QLocalSocket::threadedConnection(): Add failure message.
Introduce QVERIFY2() to get some information when exactly it fails. Change-Id: Icaddf2ecae434d0bafc90c18458c5ee067dfd506 Reviewed-by: Edward Welbourne <edward.welbourne@theqtcompany.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
Diffstat (limited to 'tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp')
-rw-r--r--tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp b/tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp
index 56728432f8..d7480a4109 100644
--- a/tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp
+++ b/tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp
@@ -732,7 +732,10 @@ public:
int done = clients;
while (done > 0) {
bool timedOut = true;
- QVERIFY(server.waitForNewConnection(7000, &timedOut));
+ QVERIFY2(server.waitForNewConnection(7000, &timedOut),
+ (QByteArrayLiteral("done=") + QByteArray::number(done)
+ + QByteArrayLiteral(", timedOut=")
+ + (timedOut ? "true" : "false")).constData());
QVERIFY(!timedOut);
QLocalSocket *serverSocket = server.nextPendingConnection();
QVERIFY(serverSocket);