elm_map_route_node_get:Modify TC to temporary Network connection failure. 72/235372/1
authorYoungGun Chun <jykeon@samsung.com>
Thu, 4 Jun 2020 06:38:53 +0000 (15:38 +0900)
committerYoungGun Chun <jykeon@samsung.com>
Thu, 4 Jun 2020 06:38:53 +0000 (15:38 +0900)
If temporary Network connection is failure happen, this tc try one more.
It will show test failure if the tc fail happen for the second working time.

Change-Id: Ie2095155056bab9e8182de8f9cf96f70330e4213

TC/elementary/map/utc_elm_map_route_node_get.c

index c38f3a30c74355c6fac26fd06bab3cd853549a7e..6f3113aa188b54feb2d68aa019e451036cfb4244 100644 (file)
@@ -5,6 +5,7 @@
 static Evas_Object *main_win = NULL;
 static Evas_Object *map = NULL;
 Elm_Map_Route *route = NULL;
+static int repeat_count2 = 0;
 
 static void _route_loaded_fail(void* data, Evas_Object* obj, void* event_info)
 {
@@ -40,6 +41,7 @@ static Eina_Bool _elm_exit(void* data)
 static void
 setup(void)
 {
+   ll: ;
    Eina_Bool load_success = EINA_FALSE;
 
    printf(" ============ Startup ============ \n");
@@ -69,6 +71,11 @@ setup(void)
    elm_run();
    if (load_success == EINA_FALSE)
      {
+       if(repeat_count2 == 0)
+          {
+             repeat_count2++;
+             goto ll;
+          }
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to load route..", __FILE__, __LINE__);
      }
 }