elm_map_route_distance_get:Modify TC to temporary Network connection failure. 40/235340/1
authorYoungGun Chun <jykeon@samsung.com>
Thu, 4 Jun 2020 04:11:59 +0000 (13:11 +0900)
committerYoungGun Chun <jykeon@samsung.com>
Thu, 4 Jun 2020 04:11:59 +0000 (13:11 +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: I40ce3c17e93ea041a930b3257e5cd198fcd1a22f

TC/elementary/map/utc_elm_map_route_distance_get.c

index 50521627e1dba1caaf3c37bc0a6588d976c3e789..f8fcb752c09d64369b276c5047ea745f1e80ed16 100644 (file)
@@ -5,6 +5,7 @@
 static Evas_Object *main_win = NULL;
 static Evas_Object *map = NULL;
 static Elm_Map_Route *route = NULL;
+static int repeat_count1 = 0;
 
 static Eina_Bool success = EINA_FALSE;
 
@@ -77,6 +78,7 @@ teardown(void)
  */
 START_TEST(utc_elm_map_route_distance_get_p)
 {
+   ll: ;
    double distance = 0.0;
    const char **sources = NULL;
    success = EINA_FALSE;
@@ -116,6 +118,11 @@ START_TEST(utc_elm_map_route_distance_get_p)
    elm_run();
    if (success != EINA_TRUE)
      {
+         if(repeat_count1 == 0)
+          {
+             repeat_count1++;
+             goto ll;
+          }
         route = NULL;
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, ..", __FILE__, __LINE__);
      }