qdeclarativedebugclient: Fix flaky autotest
authorKent Hansen <kent.hansen@nokia.com>
Fri, 25 Nov 2011 22:03:24 +0000 (23:03 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 28 Nov 2011 06:45:43 +0000 (07:45 +0100)
commit00909a4262671c685dc4f5f004746d39fdcf29ad
treecbf2f193bd889a699f4f2c86563611bada246a09
parenta736f72ad2ef3d5b72d9396c314570643cec8220
qdeclarativedebugclient: Fix flaky autotest

The connectToHost() call can try to establish the connection directly
(synchronously), in which case the warning message will be output
before the subsequent ignoreMessage() call, causing the test to fail.

Change-Id: I08a6a7d4d090cbb942c348e0787b586c71318f99
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
tests/auto/declarative/debugger/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp