ecore_file_download_abort: Delete wrong API call. 19/211619/1
authorWoochanlee <wc0917.lee@samsung.com>
Wed, 7 Aug 2019 07:31:03 +0000 (16:31 +0900)
committerWoochanlee <wc0917.lee@samsung.com>
Wed, 7 Aug 2019 07:36:13 +0000 (16:36 +0900)
ecore_main_loop_quit() in err_completion_cb() and call ecore_main_loop_begin() was wrong.
previously, when the do_quit flag has been set as 1 and after ecore_main_loop_begin() has been ignored.
So it works. but now the implement has been changed(check the begin, quit count.)

Change-Id: I25f9fc1d14786f4c6a86e94330ebe38e16cc824e

TC/ecore/ecore_file_download/utc_ecore_file_download_abort.c

index 4b6951cc2ca2f15c80bf08ae32532885b62fea37..e4a0ee6875d1540b859ada057a59f9eeda8797c5 100644 (file)
@@ -20,7 +20,6 @@ err_completion_cb(void *data EINA_UNUSED, const char *file EINA_UNUSED, int stat
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..status=%d", __FILE__, __LINE__, status);
      }
-   ecore_main_loop_quit();
 }
 
 static int
@@ -153,7 +152,6 @@ START_TEST(utc_ecore_file_download_abort_p)
      }
    ecore_file_download_abort(job);
 
-   ecore_main_loop_begin();
    res = ecore_file_remove(dest_name);
    if(res != EINA_TRUE)
      {
@@ -282,7 +280,6 @@ START_TEST(utc_ecore_file_download_abort_all_p)
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
      }
    ecore_file_download_abort_all();
-   ecore_main_loop_begin();
    res = ecore_file_remove(dest_name);
    if(res != EINA_TRUE)
      {