From patchwork Tue Sep 4 20:00:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 145953 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp4086331ljw; Tue, 4 Sep 2018 13:01:13 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbXTtm586iqpfXQMmX503b0w7NfQ9z8HahQ5jNhDlJ+fOYYBhkm64L6IHiszvtL0b18mbxz X-Received: by 2002:ac8:6989:: with SMTP id o9-v6mr32093140qtq.244.1536091273184; Tue, 04 Sep 2018 13:01:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536091273; cv=none; d=google.com; s=arc-20160816; b=gctN+uEaGWezn1KqNdl0/m4Lm3j8u8tpwaE1vH6JSf4CfMi2F5WEa32XOHWvnl67FQ /+ODJL5KQluxpZUJ7yNDLIIZMD14gRzZH7zak2D4bLz/dHCBjDiwWTuta3NI9/1gEiMu QkrKCLH/KxPCU+e6genPhyqUG3w0pL3DpR49FVUfMdVHN9eioWQMKGUyX0LMXYA08TC9 yQznYjmmL/lO8o0JzKiy1tUPtnSooZYZRW51ey4+Wlv2YrOu3S/EDQOE3lklgxdDFtOR UlIhmdp52kAiq91aqBJWQXzrHZ+V5EwU2Itj2SM7TEqKFSNcKhRboJurQ006Z6EXta/v 8PXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=trF2hRY1tTZ5Z2NTmEKNMfswCnPIA6bDS7nP7SKKPUU=; b=cSObrij6ry8JIfuygHnrzDcPWFNQI7Q5y6mXfbUMv2QtMGU7PNNy6RSR3Uek/m1HdM zkub2s2Mvd94QoPFCSs0GL+0sWTpEhSQOslMAjZzn0A6e+bO0yz+zu/qzMcRTl550AYM aJSTXydMjqb6EZj1IJeKyARe773yu6HnrhoJyIpA9G3u0kqbOPLA4OrpGosJdwMBzyaH kf3R3fAFfFB+YENYJ/aReCxMTkQmwvtdRYYneFKnHi61A5eeV+PI95vwIqetxLJ6P855 vPeWqGTLXy4zAI2PVU4WkUJj/W9pKonVLAmlq3eokeMEnFMUSlSvPMlWtGPT1BBg6GxS ZzkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id h14-v6si3326841qtm.314.2018.09.04.13.01.12; Tue, 04 Sep 2018 13:01:13 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id CF32B68646; Tue, 4 Sep 2018 20:01:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 81D3768642; Tue, 4 Sep 2018 20:00:19 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 8566568640; Tue, 4 Sep 2018 20:00:14 +0000 (UTC) Received: from forward100o.mail.yandex.net (forward100o.mail.yandex.net [37.140.190.180]) by lists.linaro.org (Postfix) with ESMTPS id D0BA668623 for ; Tue, 4 Sep 2018 20:00:12 +0000 (UTC) Received: from mxback8o.mail.yandex.net (mxback8o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::22]) by forward100o.mail.yandex.net (Yandex) with ESMTP id C473A2A22337 for ; Tue, 4 Sep 2018 23:00:11 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback8o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id nXSOAqgbBn-0BWC0p9D; Tue, 04 Sep 2018 23:00:11 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id lXapyhRv4D-0BKC6VJc; Tue, 04 Sep 2018 23:00:11 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 4 Sep 2018 20:00:06 +0000 Message-Id: <1536091206-7970-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536091206-7970-1-git-send-email-odpbot@yandex.ru> References: <1536091206-7970-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 694 Subject: [lng-odp] [PATCH v1 4/4] validation: timer: be more tolerant wrt delays X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** 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 --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",