[v2,4/5] validation: timer: be more tolerant wrt delays

Message ID 1536145206-9205-5-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • Time-related test fixes
Related show

Commit Message

Github ODP bot Sept. 5, 2018, 11 a.m.
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 694 (lumag:timer)
 ** https://github.com/Linaro/odp/pull/694
 ** Patch: https://github.com/Linaro/odp/pull/694.patch
 ** Base sha: 0a5d67beda902557056d5b5146d8cbe86e5001b0
 ** Merge commit sha: dc2fc3943e99a8bb113f9e34a27d9bf1b521ed5b
 **/
 test/validation/api/timer/timer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/test/validation/api/timer/timer.c b/test/validation/api/timer/timer.c
index e0f068823..b1b760dce 100644
--- a/test/validation/api/timer/timer.c
+++ b/test/validation/api/timer/timer.c
@@ -334,8 +334,8 @@  static void timer_test_queue_type(odp_queue_type_t queue_type)
 			tim = odp_timeout_timer(tmo);
 			tick = odp_timeout_tick(tmo);
 
-			CU_ASSERT(diff_period > (period_ns - (4 * res_ns)));
-			CU_ASSERT(diff_period < (period_ns + (4 * res_ns)));
+			CU_ASSERT(diff_period > (period_ns - (5 * res_ns)));
+			CU_ASSERT(diff_period < (period_ns + (5 * res_ns)));
 
 			LOG_DBG("timeout tick %" PRIu64 ", "
 				"timeout period %" PRIu64 "\n",