gio/tests/appmonitor: Delete file before checking for changed event
commitf2c1cfe8c770f73367a021044bcdda550348714c
authorIain Lane <iain@orangesquash.org.uk>
Tue, 30 Jun 2015 16:13:49 +0000 (30 17:13 +0100)
committerLars Uebernickel <lars.uebernickel@canonical.com>
Wed, 1 Jul 2015 10:11:23 +0000 (1 12:11 +0200)
treebc6a0ac3e08fed2dcac3eb16d33e228f45fa9cfb
parent475445e6e0e1388af7c07eedd1fb3c7679e09561
gio/tests/appmonitor: Delete file before checking for changed event

In 4e7d22e268a4e06beb1c09585a48288c31004da5, deleting the file was moved
after the assertion which checks for the changed event that results from
it being deleted. This is the wrong way around and makes the assertion
fail.

Move the deletion back up before we check the condition. delete_app is
no longer an idle callback so it can be made void. The change
notification might come in when the loop isn't running now, so don't try
to quit if it isn't running. In this case we'll wait for the three
second timeout and the test will still pass.

https://bugzilla.gnome.org/show_bug.cgi?id=751737
gio/tests/appmonitor.c