zmike pushed a commit to branch efl-1.22. http://git.enlightenment.org/core/efl.git/commit/?id=7ad33fa6121d6a47a3a988bb7b0e62a8a04e8fe1
commit 7ad33fa6121d6a47a3a988bb7b0e62a8a04e8fe1 Author: Cedric BAIL <[email protected]> Date: Tue Apr 2 15:24:03 2019 -0700 eio: do not fail in case of early ECANCEL. Actually with directory that contain a lot of file and the right order for them, you would end up getting what you are looking for before you have triggered all the future callback. In that case, all the future callback are cancelled and we will get that notification. The test is not failing in this case as we already got what we wanted. Reviewed-by: Mike Blumenkrantz <[email protected]> Differential Revision: https://phab.enlightenment.org/D8541 --- src/tests/eio/efl_io_model_test_monitor_add.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/tests/eio/efl_io_model_test_monitor_add.c b/src/tests/eio/efl_io_model_test_monitor_add.c index 35e217aa63..041a44a5a9 100644 --- a/src/tests/eio/efl_io_model_test_monitor_add.c +++ b/src/tests/eio/efl_io_model_test_monitor_add.c @@ -109,6 +109,15 @@ _children_get(void *data, Eo *child = NULL; unsigned int i, len; + if (eina_value_type_get(&v) == EINA_VALUE_TYPE_ERROR) + { + Eina_Error err = 0; + + fail_if(!eina_value_error_get(&v, &err)); + fail_if(err != ECANCELED); + return v; + } + fail_if(eina_value_type_get(&v) != EINA_VALUE_TYPE_ARRAY); EINA_VALUE_ARRAY_FOREACH(&v, len, i, child) --
