From c54c2d94c2ccf783e397c660882436cd45b082ed Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Mon, 26 Jan 2015 11:01:44 +0100 Subject: [PATCH] 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 157041c3f7..86023c810c 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(); }