summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2009-12-03 02:36:31 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2009-12-22 05:09:48 (GMT)
commitc2254fdcba61c0aceb89f2f5e6dc926a9493c1a2 (patch)
treead95a3391f36c9ad55fdce7b6c8b253375421ed5
parent5c07b6b24144774f16a20115eec1a6700d0db254 (diff)
downloadQt-c2254fdcba61c0aceb89f2f5e6dc926a9493c1a2.zip
Qt-c2254fdcba61c0aceb89f2f5e6dc926a9493c1a2.tar.gz
Qt-c2254fdcba61c0aceb89f2f5e6dc926a9493c1a2.tar.bz2
Fix QNetworkSession unit tests.
Fix out of process test by trimming input read from lackey. Don't fail in cleanupTestCase() if sessionOpenCloseStop() is not run due to command line.
-rw-r--r--tests/auto/qnetworksession/tst_qnetworksession/tst_qnetworksession.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/qnetworksession/tst_qnetworksession/tst_qnetworksession.cpp b/tests/auto/qnetworksession/tst_qnetworksession/tst_qnetworksession.cpp
index fc0db05..c7ce963 100644
--- a/tests/auto/qnetworksession/tst_qnetworksession/tst_qnetworksession.cpp
+++ b/tests/auto/qnetworksession/tst_qnetworksession/tst_qnetworksession.cpp
@@ -170,7 +170,7 @@ void tst_QNetworkSession::initTestCase()
dbus_send.waitForFinished();
#endif
- inProcessSessionManagementCount = 0;
+ inProcessSessionManagementCount = -1;
QSignalSpy spy(&manager, SIGNAL(updateCompleted()));
manager.updateConfigurations();
@@ -415,6 +415,8 @@ void tst_QNetworkSession::sessionOpenCloseStop_data()
QTest::newRow((name + QLatin1String(" stop")).toLocal8Bit().constData())
<< config << true;
}
+
+ inProcessSessionManagementCount = 0;
}
void tst_QNetworkSession::sessionOpenCloseStop()
@@ -803,7 +805,7 @@ void tst_QNetworkSession::outOfProcessSession()
output = oopSocket->readLine().trimmed();
if (output.startsWith("Started session ")) {
- QString identifier = QString::fromLocal8Bit(output.mid(16).constData());
+ QString identifier = QString::fromLocal8Bit(output.mid(20).constData());
QNetworkConfiguration changed;