ecore_con: Fix a wrong condition for a negative test case
authorMyoungwoon Roy, Kim <myoungwoon.kim@samsung.com>
Wed, 23 May 2018 02:35:42 +0000 (11:35 +0900)
committerYeongjong Lee <yj34.lee@samsung.com>
Fri, 13 Jul 2018 10:51:56 +0000 (19:51 +0900)
Fixes a wrong condition for the negative test case.

Change-Id: Idb3f247c78dfe49307b554386d9144f0a733756c

TC/ecore/ecore_con/utc_ecore_con_server_add.c

index 789ec598519630a1d54056e61691bfb61929caf3..16dbb19f90d974f52275dc738dfd99710b454d50 100644 (file)
@@ -5,7 +5,7 @@
 
 Eina_Bool startup_status = EINA_FALSE;
 
-#define NONEXISTING_ECORE_CON -10
+#define NONEXISTING_ECORE_CON 2147483647
 
 /**
  * @addtogroup ecore_con
@@ -104,7 +104,7 @@ START_TEST(utc_ecore_con_server_add_n)
    Ecore_Con_Server *svr;
 
    svr = ecore_con_server_add(ECORE_CON_REMOTE_TCP, "", 8080, NULL);
-   if (svr == NULL)
+   if (svr != NULL)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
      }