summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-04-09 13:36:56 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2018-04-10 11:28:01 +0200
commit59520a57cb33266974d7a51c96bcd208fc7c94ca (patch)
tree082de26f0eb3551b891a97604c2cae342d60211d
parenta04e7be83a186826451506320f03de626b12217d (diff)
tests: remove extra download in ecore_test_ecore_file_download
Summary: this function is just a wrapper, avoid downloading the same file multiple times ref T6853 Depends on D5885 Reviewers: stefan_schmidt Subscribers: cedric Maniphest Tasks: T6853 Differential Revision: https://phab.enlightenment.org/D5886
-rw-r--r--src/tests/ecore/ecore_test_ecore_file.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/tests/ecore/ecore_test_ecore_file.c b/src/tests/ecore/ecore_test_ecore_file.c
index 118d359504..764d0073f9 100644
--- a/src/tests/ecore/ecore_test_ecore_file.c
+++ b/src/tests/ecore/ecore_test_ecore_file.c
@@ -497,16 +497,6 @@ EFL_START_TEST(ecore_test_ecore_file_download)
497 strcat(dest_name, download_dir); 497 strcat(dest_name, download_dir);
498 strcat(dest_name, "/"); 498 strcat(dest_name, "/");
499 strcat(dest_name, download_file); 499 strcat(dest_name, download_file);
500 res = ecore_file_download(download_url, dest_name, completion_cb,
501 progress_cb, NULL, &job);
502 fail_if(res != EINA_TRUE);
503 fail_if(!job);
504 ecore_main_loop_begin();
505 fprintf(stderr, "Downloaded %lld bytes\n", ecore_file_size(dest_name));
506 res = ecore_file_exists(dest_name);
507 fail_if(res != EINA_TRUE);
508 res = ecore_file_unlink(dest_name);
509 fail_if(res != EINA_TRUE);
510 500
511 res = ecore_file_download("xxyyzz", dest_name, completion_cb, 501 res = ecore_file_download("xxyyzz", dest_name, completion_cb,
512 progress_cb, NULL, &job); 502 progress_cb, NULL, &job);
@@ -525,8 +515,9 @@ EFL_START_TEST(ecore_test_ecore_file_download)
525 eina_hash_add(headers, "Content-type", "text/html"); 515 eina_hash_add(headers, "Content-type", "text/html");
526 516
527 res = ecore_file_download_full(download_url, dest_name, completion_cb, 517 res = ecore_file_download_full(download_url, dest_name, completion_cb,
528 progress_cb, NULL, NULL, headers); 518 progress_cb, NULL, &job, headers);
529 fail_if(res != EINA_TRUE); 519 fail_if(res != EINA_TRUE);
520 fail_if(!job);
530 ecore_main_loop_begin(); 521 ecore_main_loop_begin();
531 fprintf(stderr, "Downloaded %lld bytes\n", ecore_file_size(dest_name)); 522 fprintf(stderr, "Downloaded %lld bytes\n", ecore_file_size(dest_name));
532 res = ecore_file_exists(dest_name); 523 res = ecore_file_exists(dest_name);