utc_elm_image: fix wrong tc code for elm_image_file_set/get 75/202175/2
authorHermet Park <hermetpark@gmail.com>
Mon, 25 Mar 2019 11:22:43 +0000 (20:22 +0900)
committerHermet Park <hermetpark@gmail.com>
Mon, 25 Mar 2019 11:50:15 +0000 (20:50 +0900)
eina_file_path_sanitize() could manipulate an input path,
that may return a different full path from the origin.

So, this condition doesn't always true.
we must remove eina_file_path_sanitize() here.

Since efl interfaces (efl_file_set()) is under the beta)
this may break its behavior for a while.

Change-Id: Ia9026ed0fbc72f55df96a06279017429998f0e8f

TC/elementary/image/utc_elm_image_file_get_set.c

index 931054544cba6c62a6eed80751fd5388774b325c..974a889fad2e9c941947547127c3c873cabed521 100644 (file)
@@ -75,7 +75,7 @@ START_TEST(utc_elm_image_file_set_p)
      }
    elm_image_file_get(image, &file, &group);
 
-   if (file == NULL || strcmp(file, eina_file_path_sanitize("image/image_home.png")) || group == NULL || strcmp(group, "icon"))
+   if (file == NULL || strcmp(file, "image/image_home.png") || group == NULL || strcmp(group, "icon"))
      {
         evas_object_del(image);
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
@@ -189,7 +189,7 @@ START_TEST(utc_elm_image_file_get_n)
 
    UNITEST_FUNC_NEG(elm_image_file_get, image, &file, &group);
 
-   if (file == NULL || strcmp(file, eina_file_path_sanitize("image/image_home.png")) || group == NULL || strcmp(group, "icon"))
+   if (file == NULL || strcmp(file, "image/image_home.png") || group == NULL || strcmp(group, "icon"))
      {
         evas_object_del(image);
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);