removal of unreachable code in button
authorApurv Khatri <apurv.khatri@samsung.com>
Thu, 21 Jun 2018 10:57:49 +0000 (16:27 +0530)
committerYeongjong Lee <yj34.lee@samsung.com>
Fri, 13 Jul 2018 10:51:56 +0000 (19:51 +0900)
Change-Id: Iaab1b6c004efde91a7efcf38235d21a77a7ffa04

TC/elementary/button/utc_elm_button_add.c
TC/elementary/button/utc_elm_button_autorepeat_gap_timeout_get.c
TC/elementary/button/utc_elm_button_autorepeat_gap_timeout_set.c
TC/elementary/button/utc_elm_button_autorepeat_get.c
TC/elementary/button/utc_elm_button_autorepeat_initial_timeout_get.c
TC/elementary/button/utc_elm_button_autorepeat_initial_timeout_set.c
TC/elementary/button/utc_elm_button_autorepeat_set.c

index 630a6942fdc2ded07cb7239fd573966cddba9221..391972e6fab3cb13d859c3e9521ffc8c5574e650 100644 (file)
@@ -22,7 +22,6 @@ setup(void)
    if (main_win == NULL)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
      }
 }
 
@@ -66,7 +65,6 @@ START_TEST(utc_elm_button_add_p)
    if (button == NULL)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-        return;
      }
    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
    evas_object_del(button);
@@ -93,7 +91,6 @@ START_TEST(utc_elm_button_add_n)
    if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_button_add, main_win))
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
      }
    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
 }
index b32f63ae1e631678368ab013f4da8249f9a10fa0..19c0d8c3745e4fabf4d4967675d082543c9ec766 100644 (file)
@@ -22,13 +22,11 @@ setup(void)
    if (main_win == NULL)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
      }
    button = elm_button_add(main_win);
    if (button == NULL)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a button to the main window..", __FILE__, __LINE__);
-        return;
      }
 }
 
@@ -78,7 +76,6 @@ START_TEST(utc_elm_button_autorepeat_gap_timeout_get_p)
    if (fabs(time - 0.1) > DBL_EPSILON)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-        return;
      }
    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
 }
@@ -107,7 +104,6 @@ START_TEST(utc_elm_button_autorepeat_gap_timeout_get_n)
    if (fabs(time - 0.0) > DBL_EPSILON)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-        return;
      }
    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
 }
index 92560373cbf36e0270e268c9e004405a10ec7868..932b877710194451f3c33e233c3c5364e810837e 100644 (file)
@@ -22,13 +22,11 @@ setup(void)
    if (main_win == NULL)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
      }
    button = elm_button_add(main_win);
    if (button == NULL)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a button to the main window..", __FILE__, __LINE__);
-        return;
      }
 }
 
@@ -79,7 +77,6 @@ START_TEST(utc_elm_button_autorepeat_gap_timeout_set_p)
    if (fabs(time - 0.1) > DBL_EPSILON)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-        return;
      }
    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
 }
index c8ca96d68ae37a715dd6d5b0463c0d48026efeaf..6f094013052a5af2f9dc00f132a1e532b407fda9 100644 (file)
@@ -23,13 +23,11 @@ setup(void)
    if (main_win == NULL)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
      }
    button = elm_button_add(main_win);
    if (button == NULL)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a button to the main window..", __FILE__, __LINE__);
-        return;
      }
 }
 
@@ -77,14 +75,12 @@ START_TEST(utc_elm_button_autorepeat_get_p)
    if (check == EINA_FALSE)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-        return;
      }
    elm_button_autorepeat_set(button, EINA_FALSE);
    check = elm_button_autorepeat_get(button);
    if (check == EINA_TRUE)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-        return;
      }
    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
 }
@@ -110,7 +106,6 @@ START_TEST(utc_elm_button_autorepeat_get_n)
    if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_button_autorepeat_get, button))
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
      }
    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
 }
index daff85ee4a425218081d1547f120ceb680535069..57b990212c98034216b6c8facdf2ad74aaee243e 100644 (file)
@@ -22,13 +22,11 @@ setup(void)
    if (main_win == NULL)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
      }
    button = elm_button_add(main_win);
    if (button == NULL)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a button to the main window..", __FILE__, __LINE__);
-        return;
      }
 }
 
@@ -76,7 +74,6 @@ START_TEST(utc_elm_button_autorepeat_initial_timeout_get_p)
    if (fabs(time - 1.0) > DBL_EPSILON)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-        return;
      }
    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
 }
@@ -105,7 +102,6 @@ START_TEST(utc_elm_button_autorepeat_initial_timeout_get_n)
    if (fabs(time - 0.0) > DBL_EPSILON)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-        return;
      }
    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
 }
index ce27bd5f279ddddc99d77378d16c16de55c68318..b9855d68ed659e913f61a071f32088c5504afde6 100644 (file)
@@ -22,13 +22,11 @@ setup(void)
    if (main_win == NULL)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
      }
    button = elm_button_add(main_win);
    if (button == NULL)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a button to the main window..", __FILE__, __LINE__);
-        return;
      }
 }
 
@@ -77,7 +75,6 @@ START_TEST(utc_elm_button_autorepeat_initial_timeout_set_p)
    if (fabs(time - 1.0) > DBL_EPSILON)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-        return;
      }
    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
 }
index 5624b758b410a6ae7affa53b3458f3483cd3a628..d440ac6e8344114a34a12a9a4850b854df50806d 100644 (file)
@@ -23,13 +23,11 @@ setup(void)
    if (main_win == NULL)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
      }
    button = elm_button_add(main_win);
    if (button == NULL)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a button to the main window..", __FILE__, __LINE__);
-        return;
      }
 }
 
@@ -78,14 +76,12 @@ START_TEST(utc_elm_button_autorepeat_set_p)
    if (check == EINA_FALSE)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-        return;
      }
    elm_button_autorepeat_set(button, EINA_FALSE);
    check = elm_button_autorepeat_get(button);
    if (check == EINA_TRUE)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-        return;
      }
    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
 }