asdfuser pushed a commit to branch master.

commit d1e38b85354a441e00b3459221c82708b56365d4
Author: Daniel Willmann <[email protected]>
Date:   Fri May 17 18:16:09 2013 +0100

    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 <[email protected]>
---
 src/tests/ecore/ecore_test_animator.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/tests/ecore/ecore_test_animator.c 
b/src/tests/ecore/ecore_test_animator.c
index 4f291b7..a984eb7 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)

-- 

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d

Reply via email to