summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-04-02 15:24:03 -0700
committerCedric BAIL <cedric.bail@free.fr>2019-04-06 13:13:41 -0700
commit40867cd0b866af0ec33536bce54aa9d248cdcf1c (patch)
tree7b573f62eed2997cb162800f377409c77dc6686e /src/tests
parent9afd12324b4e31c9a034912438985ab20fb2e31c (diff)
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
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/eio/efl_io_model_test_monitor_add.c9
1 files changed, 9 insertions, 0 deletions
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,
109 Eo *child = NULL; 109 Eo *child = NULL;
110 unsigned int i, len; 110 unsigned int i, len;
111 111
112 if (eina_value_type_get(&v) == EINA_VALUE_TYPE_ERROR)
113 {
114 Eina_Error err = 0;
115
116 fail_if(!eina_value_error_get(&v, &err));
117 fail_if(err != ECANCELED);
118 return v;
119 }
120
112 fail_if(eina_value_type_get(&v) != EINA_VALUE_TYPE_ARRAY); 121 fail_if(eina_value_type_get(&v) != EINA_VALUE_TYPE_ARRAY);
113 122
114 EINA_VALUE_ARRAY_FOREACH(&v, len, i, child) 123 EINA_VALUE_ARRAY_FOREACH(&v, len, i, child)