diff mbox series

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

Message ID 1536091206-7970-5-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [v1,1/4] validation: time: fix c&p error | expand

Commit Message

Github ODP bot Sept. 4, 2018, 8 p.m. UTC
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: 27864f6260e216acae7cc113756aae21161a4fe4
 **/
 test/validation/api/timer/timer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

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",