Fix instability in QNetworkConfigurationManager autotest
authorShane Kearns <shane.kearns@accenture.com>
Fri, 13 May 2011 15:32:58 +0000 (16:32 +0100)
committerQt Continuous Integration System <qt-info@nokia.com>
Thu, 26 May 2011 12:16:18 +0000 (14:16 +0200)
commit8bcf0f55346a52336a925239cbb9a0305357a070
treec922e8a6fef25540345f8c25ccf5110e79861ce3
parent785905a1f4b46f7278653e2e50604f23d359a848
Fix instability in QNetworkConfigurationManager autotest

QThread::isFinished() can return false after the finished() signal is
emitted, so test the event loop's timeout() function instead.
Don't compare prescan configurations, as these may be cached by the OS.
It was causing the test to fail on linux if run before any other network
test.

Reviewed-by: mread
(cherry picked from commit e2320ec17446dc6e851fcf4ea2d998177b0d8049)

Change-Id: I35d67294871a35e2e63619f4acb0c3c32caa5eea
Reviewed-on: http://codereview.qt.nokia.com/137
Reviewed-by: Markus Goetz
tests/auto/qnetworkconfigurationmanager/tst_qnetworkconfigurationmanager.cpp