tests: fix eldbus_test_eldbus_name_owner_changed test
authorMike Blumenkrantz <zmike@osg.samsung.com>
Tue, 29 May 2018 11:24:15 +0000 (13:24 +0200)
committerWonki Kim <wonki_.kim@samsung.com>
Fri, 1 Jun 2018 05:17:54 +0000 (14:17 +0900)
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

src/tests/eldbus/eldbus_test_eldbus_init.c

index ade332a..defe885 100644 (file)
@@ -14,6 +14,7 @@
 static Eina_Bool
 _quit_cb(void *data EINA_UNUSED)
 {
+   ck_abort_msg("dbus timeout triggered!");
    ecore_main_loop_quit();
    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;
    *id = new_id;
+   ecore_main_loop_quit();
 }
 
 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",
                                          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();