summaryrefslogtreecommitdiff
path: root/src/tests/evas/evas_test_image.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-01-26 11:01:44 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-01-26 11:01:44 +0100
commitc54c2d94c2ccf783e397c660882436cd45b082ed (patch)
tree8b4eb22086e2673ee5c0217cb95f5d57ef826cfa /src/tests/evas/evas_test_image.c
parent4c537c455c2f03f52a875277b303e848a87a80e6 (diff)
evas: fix tests to actually test image !
Diffstat (limited to 'src/tests/evas/evas_test_image.c')
-rw-r--r--src/tests/evas/evas_test_image.c6
1 files 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)
359 int w, h, r_w, r_h; 359 int w, h, r_w, r_h;
360 const uint32_t *d, *r_d; 360 const uint32_t *d, *r_d;
361 361
362 fprintf(stderr, "testing '%s'\n", exts[i]); 362 eina_strbuf_reset(str);
363 363
364 eina_strbuf_append_printf(str, "%s/Pic4-%s.png", TESTS_IMG_DIR, exts[i]); 364 eina_strbuf_append_printf(str, "%s/Pic4-%s.png", TESTS_IMG_DIR, exts[i]);
365 365
@@ -378,8 +378,6 @@ START_TEST(evas_object_image_all_loader_data)
378 evas_object_image_size_get(ref, &r_w, &r_h); 378 evas_object_image_size_get(ref, &r_w, &r_h);
379 r_d = evas_object_image_data_get(ref, EINA_FALSE); 379 r_d = evas_object_image_data_get(ref, EINA_FALSE);
380 380
381 eina_strbuf_reset(str);
382
383 fail_if(w != r_w || h != r_h); 381 fail_if(w != r_w || h != r_h);
384 fail_if(memcmp(d, r_d, w * h * 4)); 382 fail_if(memcmp(d, r_d, w * h * 4));
385 } 383 }
@@ -387,6 +385,8 @@ START_TEST(evas_object_image_all_loader_data)
387 evas_object_del(obj); 385 evas_object_del(obj);
388 evas_object_del(ref); 386 evas_object_del(ref);
389 387
388 eina_strbuf_free(str);
389
390 evas_free(e); 390 evas_free(e);
391 evas_shutdown(); 391 evas_shutdown();
392} 392}