Hello. On 05/05/16 01:56, Cedric BAIL wrote: > cedric pushed a commit to branch master. > > http://git.enlightenment.org/core/efl.git/commit/?id=a1bd7a74991fc5a618077df6f28494cb8453d6f5 > > commit a1bd7a74991fc5a618077df6f28494cb8453d6f5 > Author: Cedric BAIL <ced...@osg.samsung.com> > Date: Wed May 4 15:42:23 2016 -0700 > > ecore: add timeout promise test. > --- > src/tests/ecore/ecore_test_timer.c | 36 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) > > diff --git a/src/tests/ecore/ecore_test_timer.c > b/src/tests/ecore/ecore_test_timer.c > index ab85893..bb76968 100644 > --- a/src/tests/ecore/ecore_test_timer.c > +++ b/src/tests/ecore/ecore_test_timer.c > @@ -4,6 +4,8 @@ > > #include <Ecore.h> > > +#include <math.h> > + > #include "ecore_suite.h" > > #define TIMEOUT_1 0.01 // interval for timer1 > @@ -173,7 +175,41 @@ START_TEST(ecore_test_timers) > } > END_TEST > > +static void > +_ecore_promise_quit(void *data, void *value) > +{ > + Eina_Bool *bob = data; > + double *start = *(double**)value; > + double delta = fabs(ecore_loop_time_get() - *start); > + > + fail_if(fabs(delta - 0.2) > 0.01); > +
This test is failing on Jenkins. It works for me during local testing. Maybe the timing is to tight for the builder when on heavy load. https://build.enlightenment.org/job/nightly_efl_gcc_x86_64/1204/testReport/%28root%29/Ecore/ecore_test_timeout/ regards Stefan Schmidt > + *bob = EINA_TRUE; > + ecore_main_loop_quit(); > +} > + > +START_TEST(ecore_test_timeout) > +{ > + Eina_Promise *timeout = NULL; > + Eina_Bool bob = EINA_FALSE; > + double start; > + > + ecore_init(); > + > + start = ecore_time_get(); > + efl_loop_timeout(ecore_main_loop_get(), &timeout, 0.2, &start); > + eina_promise_then(timeout, &_ecore_promise_quit, NULL, &bob); > + > + ecore_main_loop_begin(); > + > + fail_if(bob != EINA_TRUE); > + > + ecore_shutdown(); > +} > +END_TEST > + > void ecore_test_timer(TCase *tc) > { > tcase_add_test(tc, ecore_test_timers); > + tcase_add_test(tc, ecore_test_timeout); > } > ------------------------------------------------------------------------------ Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched! https://ad.doubleclick.net/ddm/clk/304595813;131938128;j _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel