Fix instability in QNetworkConfigurationManager autotest
authorShane Kearns <shane.kearns@accenture.com>
Fri, 13 May 2011 15:32:58 +0000 (16:32 +0100)
committerShane Kearns <shane.kearns@accenture.com>
Fri, 13 May 2011 15:32:58 +0000 (16:32 +0100)
commite2320ec17446dc6e851fcf4ea2d998177b0d8049
tree6e9ca63949f5c16183ba4c64a64d59bb70358ac3
parent90109341466e4ed4344ad37d23bdf947fafa16bc
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
tests/auto/qnetworkconfigurationmanager/tst_qnetworkconfigurationmanager.cpp