cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=c54c2d94c2ccf783e397c660882436cd45b082ed

commit c54c2d94c2ccf783e397c660882436cd45b082ed
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Mon Jan 26 11:01:44 2015 +0100

    evas: fix tests to actually test image !
---
 src/tests/evas/evas_test_image.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/tests/evas/evas_test_image.c b/src/tests/evas/evas_test_image.c
index 157041c..86023c8 100644
--- a/src/tests/evas/evas_test_image.c
+++ b/src/tests/evas/evas_test_image.c
@@ -359,7 +359,7 @@ START_TEST(evas_object_image_all_loader_data)
         int w, h, r_w, r_h;
         const uint32_t *d, *r_d;
 
-        fprintf(stderr, "testing '%s'\n", exts[i]);
+        eina_strbuf_reset(str);
 
         eina_strbuf_append_printf(str, "%s/Pic4-%s.png", TESTS_IMG_DIR, 
exts[i]);
 
@@ -378,8 +378,6 @@ START_TEST(evas_object_image_all_loader_data)
         evas_object_image_size_get(ref, &r_w, &r_h);
         r_d = evas_object_image_data_get(ref, EINA_FALSE);
 
-        eina_strbuf_reset(str);
-
         fail_if(w != r_w || h != r_h);
         fail_if(memcmp(d, r_d, w * h * 4));
      }
@@ -387,6 +385,8 @@ START_TEST(evas_object_image_all_loader_data)
    evas_object_del(obj);
    evas_object_del(ref);
 
+   eina_strbuf_free(str);
+
    evas_free(e);
    evas_shutdown();
 }

-- 


Reply via email to