On Fri, Dec 1, 2017 at 6:38 AM, Cedric BAIL <[email protected]> wrote: > cedric pushed a commit to branch master. > > http://git.enlightenment.org/core/efl.git/commit/?id=7d229efda5ee09a72e2fc6d3172bbdd2b4f1f49c > > commit 7d229efda5ee09a72e2fc6d3172bbdd2b4f1f49c > Author: Cedric Bail <[email protected]> > Date: Fri Dec 1 00:38:09 2017 -0800 > > ecore_con: use eina_future based timeout for tests. > --- > .../ecore_con/ecore_con_test_efl_net_ip_address.c | 18 > +++++++++++++----- > 1 file changed, 13 insertions(+), 5 deletions(-) > > diff --git a/src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c > b/src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c > index 42f549bbd0..d6768b3781 100644 > --- a/src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c > +++ b/src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c > @@ -97,23 +97,31 @@ _eina_test_safety_print_cb(const Eina_Log_Domain *d, > Eina_Log_Level level, const > } \ > while (0) > > -static void > -_timeout(void *data, const Efl_Event *event EINA_UNUSED) > +static Eina_Value > +_timeout(void *data, > + const Eina_Value t, > + const Eina_Future *dead EINA_UNUSED) > { > Eina_Bool *did = data; > + > + if (t.type == EINA_VALUE_TYPE_ERROR) > + return t;
if you just want the success case, you can use the "easy" variant :-) -- Gustavo Sverzut Barbieri -------------------------------------- Mobile: +55 (16) 99354-9890 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
