diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-02-17 06:16:55 (GMT) |
---|---|---|
committer | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-03-19 02:11:19 (GMT) |
commit | 39818f933b958d504b9cc18487658209d1df22da (patch) | |
tree | b88fcbfbfda7d57866bab0e391360521c3f87af0 /tests/auto | |
parent | 777843c18c9b62af90436ba03036027c9222eadf (diff) | |
download | Qt-39818f933b958d504b9cc18487658209d1df22da.zip Qt-39818f933b958d504b9cc18487658209d1df22da.tar.gz Qt-39818f933b958d504b9cc18487658209d1df22da.tar.bz2 |
Don't emit open signal on session close/error.
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qnetworksession/test/tst_qnetworksession.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qnetworksession/test/tst_qnetworksession.cpp b/tests/auto/qnetworksession/test/tst_qnetworksession.cpp index 4b56f77..35f7ba7 100644 --- a/tests/auto/qnetworksession/test/tst_qnetworksession.cpp +++ b/tests/auto/qnetworksession/test/tst_qnetworksession.cpp @@ -628,6 +628,9 @@ void tst_QNetworkSession::sessionOpenCloseStop() QVERIFY(session.state() == previousState); + QVERIFY(sessionOpenedSpy.isEmpty()); + QCOMPARE(sessionClosedSpy.count(), 1); + if (error == QNetworkSession::OperationNotSupportedError) { // The session needed to bring up the interface, // but the operation is not supported. |