Page MenuHomePhabricator

ecore timer tests fail to pass tolerance threshold in some cases
Closed, ResolvedPublic

Description

tests/ecore/ecore_test_timer.c:185:F:Ecore_Timers:ecore_test_timer_inside_call:0: Assertion 'fabs(((ecore_time_get() - c->start) / (6 - it)) - 0.011) <= 0.    01' failed: fabs(((ecore_time_get() - c->start) / (6 - it)) - 0.011) == 0.0221811, 0.01 == 0.01
tests/ecore/ecore_test_timer.c:185:F:Ecore_Timers:ecore_test_timer_inside_call:0: Assertion 'fabs(((ecore_time_get() - c->start) / (6 - it)) - 0.011) <= 0.    01' failed: fabs(((ecore_time_get() - c->start) / (6 - it)) - 0.011) == 0.0126397, 0.01 == 0.01
tests/ecore/ecore_test_timer.c:185:F:Ecore_Timers:ecore_test_timer_inside_call:0: Assertion 'fabs(((ecore_time_get() - c->start) / (6 - it)) - 0.011) <= 0.    01' failed: fabs(((ecore_time_get() - c->start) / (6 - it)) - 0.011) == 0.0253019, 0.01 == 0.01

Related Objects

zmike created this task.Apr 10 2018, 6:43 AM

Hum, this might be related to the use of a static variable with no fork and parallel use, it might get to zero while it shouldn't. Maybe making that a general variable and doing a reset to 5 every time we do a test would solve this issue.

I'm not sure what you mean?

zmike added a comment.Jun 8 2018, 8:34 AM

Oh this is passing a stack variable to a callback. How did this ever work?

bu5hm4n triaged this task as High priority.Jun 11 2018, 1:29 AM
zmike edited projects, added Restricted Project; removed efl.Jun 11 2018, 6:50 AM
bu5hm4n edited projects, added efl: main loop; removed Restricted Project.Jun 11 2018, 7:40 AM