tests: Fix test-restart to only quit on state changes
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 22 Jan 2014 12:36:33 +0000 (12:36 +0000)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Fri, 31 Jan 2014 06:49:07 +0000 (01:49 -0500)
commitf08083c8b5c65be0950990e488de4fb16714af44
tree4cf00eb810f29d5bed655023d637ea63086ce063
parentf7b15f1444f119ad5c3c835a27faca59e74059d2
tests: Fix test-restart to only quit on state changes

Previously, there was a race between receiving the data packets and
changing state to READY, which would cause one of the final assertions
to fail.
tests/test-restart.c