From a41867a573c08bcd45caa422eeca1043163dd1e2 Mon Sep 17 00:00:00 2001 From: Joe Konno Date: Wed, 29 Aug 2012 08:19:19 -0700 Subject: [PATCH] efl: additional time padding for notification 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 --- src/efl/test_notify.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/efl/test_notify.cpp b/src/efl/test_notify.cpp index feb2397..841b518 100644 --- a/src/efl/test_notify.cpp +++ b/src/efl/test_notify.cpp @@ -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( -- 2.7.4