summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@theqtcompany.com>2016-03-02 16:09:38 +0100
committerJoerg Bornemann <joerg.bornemann@theqtcompany.com>2016-03-03 08:25:04 +0000
commit2b2232b5ea8e952310f9b7e09c9691080dfb778e (patch)
tree3d0d25b3b37014a4a385083635c1d88160658c51
parent007039eae9fa24c14be6c4a63d59b28b07093579 (diff)
Speed up tst_QLocalSocket::sendData
The data function for this test re-used listenAndConnect_data that has an additional column "connections" which was never used in sendData. Thus sendData executed three times the same code which is just uselessly burned CI time. Copied the actually needed code of listenAndConnect_data to sendData_data. Change-Id: I6cdb1c1b72cb4ce7be7c13e90eea30ac09a14914 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
-rw-r--r--tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp b/tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp
index d7480a4109..0505544a29 100644
--- a/tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp
+++ b/tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp
@@ -498,7 +498,11 @@ void tst_QLocalSocket::connectWithOldOpen()
void tst_QLocalSocket::sendData_data()
{
- listenAndConnect_data();
+ QTest::addColumn<QString>("name");
+ QTest::addColumn<bool>("canListen");
+
+ QTest::newRow("null") << QString() << false;
+ QTest::newRow("tst_localsocket") << "tst_localsocket" << true;
}
void tst_QLocalSocket::sendData()