efl: additional time padding for notification
authorJoe Konno <joe.konno@intel.com>
Wed, 29 Aug 2012 15:19:19 +0000 (08:19 -0700)
committerJoe Konno <joe.konno@intel.com>
Wed, 29 Aug 2012 15:19:19 +0000 (08:19 -0700)
Reduce the duration of the yield() to lower the probability of missing an
event. Also, expand the "pass" tolerance to +4 secs (from 1 sec).

Signed-off-by: Joe Konno <joe.konno@intel.com>
src/efl/test_notify.cpp

index feb2397..841b518 100644 (file)
@@ -48,8 +48,8 @@ public:
                        )
                );
 
-               // If it takes more than 2 seconds for this event to fire, we have a bug
-               checkTimedOut(time(NULL) + 2);
+               // If it takes more than 5 seconds for this event to fire, we have a bug
+               checkTimedOut(time(NULL) + 5);
        }
 
        void noOp(void)
@@ -64,8 +64,8 @@ public:
 
                if (not timedout_)
                {
-                       // prevent a hot loop, sleep for 1/100 of a second
-                       Application::yield(10000);
+                       // prevent a hot loop, sleep for 100ms
+                       Application::yield(100);
 
                        // awaiting the "timedout" signal, so queue another noOp
                        queueCallback(