tests: ecore: relax the timing precision for the promise timeout test
authorStefan Schmidt <stefan@osg.samsung.com>
Mon, 19 Sep 2016 12:01:19 +0000 (14:01 +0200)
committerStefan Schmidt <stefan@osg.samsung.com>
Mon, 19 Sep 2016 12:01:19 +0000 (14:01 +0200)
This test has been failing on Jenkins again and again. After adding the debug
a while ago it now shows that the value is between 0.01 and 0.02 in all cases
I have seen. Relaxing the timeout here a bit to make it pass in situation where
our CI is under load.

src/tests/ecore/ecore_test_timer.c

index c7547e4..f3b277b 100644 (file)
@@ -183,8 +183,8 @@ _ecore_promise_quit(void *data, const Efl_Event *ev)
    double *start = success->value;
    double delta = ecore_loop_time_get() - *start;
 
-   fprintf(stderr, "Ecore promise timeout took %f (should be <= 0.01)\n", delta - 0.2);
-   fail_if(delta - 0.2 > 0.01);
+   fprintf(stderr, "Ecore promise timeout took %f (should be <= 0.02)\n", delta - 0.2);
+   fail_if(delta - 0.2 > 0.02);
 
    *bob = EINA_TRUE;
    ecore_main_loop_quit();