mainloop-test: omit glib pump if we have a glib superloop.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Tue, 27 Nov 2012 17:45:15 +0000 (19:45 +0200)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Tue, 27 Nov 2012 17:45:15 +0000 (19:45 +0200)
commit8ea7abbcbf2efb073e5bf740f56010ea0ca1585d
tree827a60d9f46db9acc22cd439c3c5f15bcd6fb82f
parent884478c939fe3c2fb08761cb0fe0bb09a29c52a5
mainloop-test: omit glib pump if we have a glib superloop.

Don't try to run with glib set up as both our super- and subloops.
It makes no sense and it only ends up in glib's event dispatcher
being called recursively (superloop dispatching us, we dispatching
the subloop which happens to be also our superloop) and aborting
on an assert.

This whole single combined mainloop-test mess should be cleaned up.
src/common/tests/mainloop-test.c