efl/src/tests/evas
Shinwoo Kim 5a68a63ab7 evas cache image: compare with cached image file
As cache2 knows cached image could be not matched even though
hash key is not different.

Please refer to the following comment of evas_cache2_image_open.

   /* image we found doesn't match what's on disk (stat info wise)
    * so dirty the active cache entry so we never find it again. this
    * also implicitly guarantees that we only have 1 active copy
    * of an image at a given key. we wither find it and keep re-reffing
    * it or we dirty it and get it out */

The hash key is created base on the image file address.
If the image file address to find does not equal cached image file address
then it means that the cached image is no longer valid.

This case could happen with the following step.

(1) Call evas_object_image_memfile_set with content data A
(2) Call evas_object_image_memfile_set with content data B
(3) Add timer with short time (ex: 0.01 sec)
(4) Delete A image, and add A image in timer callback
(5) Delete B image, and add B image in timer callback

Sometimes you could see image of A from the B image, because newly created
image at step 5 has same address of setp 1.

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D6870
2018-12-06 12:06:16 -05:00
..
dicts Evas textblock: fix wrong hyphenation issues with non UTF8 encoded dictionary 2018-05-06 12:01:41 +03:00
fonts evas: Add a test case with a custom font 2017-07-11 16:21:29 +09:00
images evas tests - add Jpeg2000 tests 2017-08-11 17:53:28 +09:00
meshes
evas_suite.c evas: move clearing cows to right place. 2018-06-27 07:50:31 -04:00
evas_suite.h evas: move clearing cows to right place. 2018-06-27 07:50:31 -04:00
evas_test_callbacks.c tests: move to using checked fixtures for all test suites 2018-04-05 11:10:26 +02:00
evas_test_evasgl.c tests: move to using checked fixtures for all test suites 2018-04-05 11:10:26 +02:00
evas_test_filters.c tests: move to using checked fixtures for all test suites 2018-04-05 11:10:26 +02:00
evas_test_image.c evas cache image: compare with cached image file 2018-12-06 12:06:16 -05:00
evas_test_init.c tests: add instrumentation to existing tests to find slow tests 2018-04-05 11:10:25 +02:00
evas_test_mask.c tests: move to using checked fixtures for all test suites 2018-04-05 11:10:26 +02:00
evas_test_matrix.c tests: add instrumentation to existing tests to find slow tests 2018-04-05 11:10:25 +02:00
evas_test_mesh.c tests: parallelize evas mesh tests 2018-05-03 15:04:57 +02:00
evas_test_new.c evas test - actually use result of add of rect obj for test 2018-11-09 11:43:59 +00:00
evas_test_object.c evas: improve test to actually test something meaningful. 2018-05-24 16:02:20 -07:00
evas_test_object_smart.c test/evas: add to check smart class overriding 2018-08-06 16:21:55 +09:00
evas_test_render_engines.c tests: add instrumentation to existing tests to find slow tests 2018-04-05 11:10:25 +02:00
evas_test_text.c tests: move to using checked fixtures for all test suites 2018-04-05 11:10:26 +02:00
evas_test_textblock.c Evas textblock: fix test to use provided hyphen dictionary 2018-11-16 11:21:53 +02:00
evas_tests_helpers.h tests: move to using checked fixtures for all test suites 2018-04-05 11:10:26 +02:00
meson.build here comes meson 2018-10-02 17:22:50 +02:00