elm_map_route_node_get:Modify TC to temporary Network connection failure. 97/235497/1
authorYoungGun Chun <jykeon@samsung.com>
Fri, 5 Jun 2020 05:09:15 +0000 (14:09 +0900)
committerYoungGun Chun <jykeon@samsung.com>
Fri, 5 Jun 2020 05:09:15 +0000 (14:09 +0900)
If temporary Network connection is failure happen when utc_elm_map_route_node_get_p function testing.
This tc try one more.
It will show test failure if the tc fail happen for the second working time.

Change-Id: I806511eb2fd888a0471d38f2f775ef4a45e1574a

TC/elementary/map/utc_elm_map_route_node_get.c

index 1c5c20d62646acd9fc038cff19b20b876b0ba539..3ee4dddfb39b50403a467c4f8c1fed95c839b045 100644 (file)
@@ -6,6 +6,7 @@ static Evas_Object *main_win = NULL;
 static Evas_Object *map = NULL;
 Elm_Map_Route *route = NULL;
 static int repeat_count3 = 0;
+static int repeat_count5 = 0;
 
 static void _route_loaded_fail(void* data, Evas_Object* obj, void* event_info)
 {
@@ -107,6 +108,7 @@ teardown(void)
  */
 START_TEST(utc_elm_map_route_node_get_p)
 {
+    ll: ;
    const char *nodes = NULL;
 
    if (route == NULL)
@@ -118,6 +120,11 @@ START_TEST(utc_elm_map_route_node_get_p)
 
    if (nodes == NULL)
      {
+         if(repeat_count5 == 0)
+          {
+             repeat_count5++;
+             goto ll;
+          }
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
      }
    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);