ecore_con: do not check ecore_con_server_connected_get() temporarily 34/193834/1
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 27 Nov 2018 02:12:58 +0000 (11:12 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 27 Nov 2018 02:14:28 +0000 (11:14 +0900)
Until ecore_con issue is resolved, ecore_con_server_connected_get() is
not checked temporarily.

Change-Id: I30f0336f8adb3c8c222aacc0a534b533de5a42cc

TC/ecore/ecore_con/utc_ecore_con_server_ip_get.c

index af81bc0abb907b1240e10eb8b096c796327424ec..62a388feaef724fc5b3830b17f58dd0b10b7270d 100644 (file)
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Con_Server *svr = NULL;
-static Ecore_Timer *timer_loop;
 
 static Eina_Bool
-_timer_loop_cb(void* data)
+_timer_loop_cb(void* data EINA_UNUSED)
 {
-   Ecore_Con_Server *svr_connect = data;
-
-   if (ecore_con_server_connected_get(svr_connect))
-     {
-        ecore_main_loop_quit();
-        timer_loop = NULL;
-        return ECORE_CALLBACK_CANCEL;
-     }
-
-   return ECORE_CALLBACK_RENEW;
+   ecore_main_loop_quit();
+   return ECORE_CALLBACK_CANCEL;
 }
 
 /**
@@ -87,7 +78,7 @@ START_TEST(utc_ecore_con_server_ip_get_p)
    Eina_Bool ok = EINA_FALSE;
    ecore_con_server_timeout_set(svr, ECORE_CON_SERVER_TIMEOUT);
 
-   if (!(timer_loop = ecore_timer_add(0.1, _timer_loop_cb, svr)))
+   if (!(ecore_timer_add(0.1, _timer_loop_cb, NULL)))
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
      }