mainloop: redo child source tests to not use timeouts
authorDan Winship <danw@gnome.org>
Wed, 24 Jul 2013 14:02:38 +0000 (10:02 -0400)
committerDan Winship <danw@gnome.org>
Wed, 24 Jul 2013 18:22:23 +0000 (14:22 -0400)
commit2127654da5ec64db93653e7b0ac02b0b17abe191
treedd52f7e4c1552878803fb1f50aae22d6fdbe44ab
parent8c748efce1b441cf8aa05f22a24c27a940a29cf7
mainloop: redo child source tests to not use timeouts

The timeout-based tests could fail on slow or heavily-loaded machines.
Change them to use a counter-based "timeout" source rather than a
time-based one, so they no longer depend on wall time.

https://bugzilla.gnome.org/show_bug.cgi?id=700460
glib/tests/mainloop.c