forked from enlightenment/efl
tests: fix eldbus_test_eldbus_name_owner_changed test
Summary: this is supposed to check an fdo dbus spec implementation, so the test should exit with success after verifying it instead of waiting for a timeout ref T6952 Depends on D6196 Reviewers: stefan_schmidt, cedric Reviewed By: cedric Subscribers: cedric, #committers Tags: #efl Maniphest Tasks: T6952 Differential Revision: https://phab.enlightenment.org/D6197
This commit is contained in:
parent
c6304aed8c
commit
6421dd68fd
|
@ -14,6 +14,7 @@
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_quit_cb(void *data EINA_UNUSED)
|
_quit_cb(void *data EINA_UNUSED)
|
||||||
{
|
{
|
||||||
|
ck_abort_msg("dbus timeout triggered!");
|
||||||
ecore_main_loop_quit();
|
ecore_main_loop_quit();
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
@ -66,6 +67,7 @@ void name_owner_changed_cb(void *data, const char *bus EINA_UNUSED, const char *
|
||||||
{
|
{
|
||||||
const char **id = data;
|
const char **id = data;
|
||||||
*id = new_id;
|
*id = new_id;
|
||||||
|
ecore_main_loop_quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
EFL_START_TEST(eldbus_test_eldbus_name_owner_changed)
|
EFL_START_TEST(eldbus_test_eldbus_name_owner_changed)
|
||||||
|
@ -78,7 +80,7 @@ EFL_START_TEST(eldbus_test_eldbus_name_owner_changed)
|
||||||
|
|
||||||
eldbus_name_owner_changed_callback_add(conn, "org.bus.that.not.exist",
|
eldbus_name_owner_changed_callback_add(conn, "org.bus.that.not.exist",
|
||||||
name_owner_changed_cb, &id, EINA_TRUE);
|
name_owner_changed_cb, &id, EINA_TRUE);
|
||||||
ecore_timer_add(0.5, _quit_cb, NULL);
|
ecore_timer_add(0.1, _quit_cb, NULL);
|
||||||
|
|
||||||
ecore_main_loop_begin();
|
ecore_main_loop_begin();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue