ecore_con: Update ecore_con_server_ip_get
authorse.osadchy <se.osadchy@samsung.com>
Mon, 13 Mar 2017 08:57:15 +0000 (10:57 +0200)
committerse.osadchy <se.osadchy@samsung.com>
Mon, 13 Mar 2017 08:58:54 +0000 (10:58 +0200)
Change-Id: I606aac5c5ac7e37c52466518eea117ab2cf64883
Signed-off-by: Sergey Osadchy <se.osadchy@samsung.com>
TC/ecore/ecore_con/utc_ecore_con_server_ip_get.c

index 700eafe9fd2a61741b3ebd94c3e03b945d976cca..61784015472a51b20c21bd3a9ef548b82a77bb77 100644 (file)
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Con_Server *srv = NULL;
 
-Eina_Bool _quit_timer_cb(void* data)
-{
-   ecore_main_loop_quit();
-   return ECORE_CALLBACK_CANCEL;
-}
-
 /**
  * @addtogroup ecore_con
  * @{
@@ -35,7 +29,7 @@ setup(void)
    printf(" ============ Startup ============ \n");
    if (ecore_con_init() > 0)
      {
-        srv = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, HOSTNAME, PORT, NULL);
+        srv = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, "127.0.0.1", PORT, NULL);
         if (srv != NULL)
           {
              startup_status = EINA_TRUE;
@@ -76,11 +70,6 @@ START_TEST(utc_ecore_con_server_ip_get_p)
    const char *ip = NULL;
    Eina_Bool ok = EINA_FALSE;
 
-   if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
-     }
-   ecore_main_loop_begin();
    ip = ecore_con_server_ip_get(srv);
    if (ip != NULL)
      {