diff options
author | Daniel Willmann <d.willmann@samsung.com> | 2013-05-17 18:16:09 +0100 |
---|---|---|
committer | Daniel Willmann <d.willmann@samsung.com> | 2013-05-17 18:16:09 +0100 |
commit | d1e38b85354a441e00b3459221c82708b56365d4 (patch) | |
tree | 2ac4a240eec7252211284cf209bb9bc0a32fef79 /src/tests | |
parent | 04829b9244402972d7e9c05fdcda0b56c6bf813e (diff) |
tests/ecore_animators: Don't rely on consistent timing
This may break under heavy load so we shouldn't rely on it. Instead make
sure that time only moves forward.
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/ecore/ecore_test_animator.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/tests/ecore/ecore_test_animator.c b/src/tests/ecore/ecore_test_animator.c index 4f291b794..a984eb764 100644 --- a/src/tests/ecore/ecore_test_animator.c +++ b/src/tests/ecore/ecore_test_animator.c @@ -10,15 +10,8 @@ static double prev = 0; static Eina_Bool _anim_cb(void *data, double pos) { - double interval = *(double *)data; - - /* Make sure the intervals are within tolerances - * Ignore first and last step */ - if (prev != 0 && pos != 1.0) { - fail_if(pos-prev > interval*1.1); - fail_if(pos-prev < interval*0.9); - } + fail_if(prev >= pos); prev = pos; if (pos == 1.0) |