mainloop-tests: fix in running qt tests with GLIB_ENABLED
authorAmarnath Valluri <amarnath.valluri@linux.intel.com>
Fri, 30 Nov 2012 14:06:56 +0000 (16:06 +0200)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Mon, 3 Dec 2012 07:55:33 +0000 (09:55 +0200)
Qt default uses glib mainloop, so we cannot use same glib as subloop.

src/common/tests/mainloop-test.c

index 5274dc5..82a88fa 100644 (file)
@@ -1653,7 +1653,7 @@ int main(int argc, char *argv[])
     MRP_UNUSED(setup_deferred);   /* XXX TODO: add deferred tests... */
 
 #ifdef GLIB_ENABLED
-    if (cfg.mainloop_type != MAINLOOP_GLIB) {
+    if (cfg.mainloop_type != MAINLOOP_GLIB && cfg.mainloop_type != MAINLOOP_QT) {
         if (cfg.ngio > 0 || cfg.ngtimer > 0)
             glib_pump_setup(ml);
     }