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.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D8541
Cedric BAIL 4 years ago
parent 9afd12324b
commit 40867cd0b8
  1. 9

@ -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)