Fix failing setSocketDescriptor test in QTcpSocket
authorShane Kearns <shane.kearns@accenture.com>
Fri, 2 Dec 2011 11:14:47 +0000 (11:14 +0000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 9 Dec 2011 00:01:01 +0000 (01:01 +0100)
commit9138890bd60d2b07bed5e132306f9b3acd748343
tree7f2265f49bdd3c9ce6424a0e2b9254634b1076af
parentf7d11b216a47db833dd935cc30fb963be37fc761
Fix failing setSocketDescriptor test in QTcpSocket

setSocketDescriptor fails because socket is in the wrong state.
This is timing dependent, if qt-test-server is still in the DNS cache
then the test failed.
 - clear the DNS cache to avoid the host lookup state being skipped.

Change-Id: If159d514b1aa9b62a4834f6352d5e7b0a00a5724
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp