Fix race condition in gapplication/basic test
authorEmilio Pozuelo Monfort <pochu27@gmail.com>
Thu, 29 Nov 2012 16:48:35 +0000 (17:48 +0100)
committerEmilio Pozuelo Monfort <pochu27@gmail.com>
Thu, 29 Nov 2012 23:07:58 +0000 (00:07 +0100)
commitedf94ba2631b8c4d32e798eaec69ceb89d6b32a8
treec7a787fbd94adfc7b8744baa193b0bfb626ecfd1
parent3e5214c15c2a19b64d74e7142b6cd0d520dddf04
Fix race condition in gapplication/basic test

The three processes this test creates need to be executed
in order, and g_usleep was used to guarantee that.
However, under heavy load, that is not enough. Instead,
wait until the children start by making sure they have
written to stdout before proceeding any further.

https://bugzilla.gnome.org/show_bug.cgi?id=664627
gio/tests/gapplication.c