Hi,
On Tue, Mar 21, 2017 at 12:30 PM, Ossama Othman <ossama.othman(a)intel.com>
wrote:
+static void family_vanished(void *user_data)
+{
+ bool *vanished_called = user_data;
+
+ *vanished_called = true;
+ l_main_quit();
I just noticed this extraneous l_main_quit() call. It doesn't affect the
unit test result but I'll resend the patch with it removed.
+}
+
+static void idle_handler(struct l_idle *idle, void *user_data)
+{
+ static int count = 0;
+
+ /*
+ * Allow the main loop to iterate at least once. Otherwise
+ * the generic netlink watches won't be called.
+ */
+ if (count++ == 1)
+ l_main_quit();
+}
Thanks,
-Ossama