fix flakiness of tst_qlocalsocket::processConnection
authorJoerg Bornemann <joerg.bornemann@digia.com>
Wed, 24 Oct 2012 09:28:57 +0000 (11:28 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 25 Oct 2012 08:19:48 +0000 (10:19 +0200)
commitb5d55f3a353313735f3b26448961a5722c0bf669
treeedeffc91f072e70972732591ccdbf73c2cd7b858
parent935f223440bd125ccbda380ea880486653e8b42e
fix flakiness of tst_qlocalsocket::processConnection

QSystemSemaphore is persistent after a crash and we'd have to toggle the
Open/Create flag. Waiting for the server being available by trying to
connect is much more reliable.

Change-Id: I510814cef189b43658911f8ade3cf831ae6c7e58
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
tests/auto/network/socket/qlocalsocket/socketprocess/main.cpp