tests: Fix race conditions in mainloop/invoke test
authorColin Walters <walters@verbum.org>
Mon, 16 Apr 2012 17:55:02 +0000 (13:55 -0400)
committerColin Walters <walters@verbum.org>
Mon, 16 Apr 2012 18:14:29 +0000 (14:14 -0400)
commit3ac2930e1aabeca7dac7a2570cba24591d97e0d2
treeeafb2f73b02c4db7340a4eadabda4c3854634850
parent3054ecf10943575381dfea2513936567be51dd73
tests: Fix race conditions in mainloop/invoke test

1) The test was using GCond incorrectly (it always needs a
   state variable)
2) The state assertion was racing with the thread; just delete it.
   All we're really trying to test here is that the invoke runs by the
   time the thread is gone, and the function has an assertion that
   it runs in the correct thread.

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