cedric pushed a commit to branch master.

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

commit 40867cd0b866af0ec33536bce54aa9d248cdcf1c
Author: Cedric BAIL <cedric.b...@free.fr>
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 <michael.blumenkra...@gmail.com>
    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)

-- 


Reply via email to