From patchwork Wed Sep 5 11:00:05 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: 145990 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp4783493ljw; Wed, 5 Sep 2018 04:01:49 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaFm0ChZi75fdPaNd4dhDDC6kB9hbKZ401ioR+LCpX6/gF9Wc/y+6tE56omYl7ImPrrSGSM X-Received: by 2002:a37:4c85:: with SMTP id z127-v6mr32487425qka.302.1536145309347; Wed, 05 Sep 2018 04:01:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536145309; cv=none; d=google.com; s=arc-20160816; b=pdxiz0mykDJT1rYcNHUjW8llXMTlFJLol1QdS60R+sel3jI3oBM0g349+Qme4qcCW4 i7Tf9EGlciTMIGlom413Dhc6jCF9D+V455NVUcDZms0qSRCl0F7hE1aFuULGnDnacxKi RnmMbpEka2AEGSa2Q3dWrkIo+2t6MDdqzvK0VI0/Hvfre5YSnH5q2qUttA/du6F85FQ0 p/ch6GEk96knKQgdr9kVi7DBYjtM4KlGBAB/JMYfeVcUijdqp7PK6PDHEGsTszzg2i9K lzQ+RIYE8YRGhiB9D8V7e3YNhxZH0fbelLsVXPlswChiC685WBzrahsfuueZ4tKmx0PU 7NtA== 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; bh=KX4C3LZcevgFXN1PxkIlIjHSUQQbza9jnoSjfatBJbQ=; b=Ccw32LSaZMdC1lnmpZJ+ZxUrcPcnJ+LpIkngbYMkHlhd0NN8JsWlekpGzJE66tz5fn qG1Ip1DCdqxBCdB0YNF+RbQ52duCmLgLasFVN3WPglAT/wJw6YbxdCZg7ZT4beUkv+Pp RvjGaUQ/at/duvRhyicJ8QmfVAVUrmubW/VJygDYl6He2y3jZwfWmpg4AL6gQ1DDde13 kttSl2QIKFUfR6gnJgsBDsUj0zfRwE3y7RCNvLVmRmGeB2AjQQU65v8nNiiir1eyxQP/ vzVsjhN6n4UyvRsovo/kEGnhLEdSRJHDgkTd3tI7+6W5Q5vG0PF4PlJIa09IQBzKLxcB qs5A== 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 d24-v6si1238227qkh.150.2018.09.05.04.01.49; Wed, 05 Sep 2018 04:01:49 -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 F1EEC6863C; Wed, 5 Sep 2018 11:01:48 +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 3C844685D9; Wed, 5 Sep 2018 11:00:26 +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 0048F60CFC; Wed, 5 Sep 2018 11:00:15 +0000 (UTC) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [5.45.198.248]) by lists.linaro.org (Postfix) with ESMTPS id 8BA2D61BF2 for ; Wed, 5 Sep 2018 11:00:13 +0000 (UTC) Received: from mxback10o.mail.yandex.net (mxback10o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::24]) by forward105j.mail.yandex.net (Yandex) with ESMTP id D979D1856A3 for ; Wed, 5 Sep 2018 14:00:11 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback10o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 06Mn7o0g3X-0BqW3Xup; Wed, 05 Sep 2018 14:00:11 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 5T90TlmWMq-0B40i0ae; Wed, 05 Sep 2018 14: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: Wed, 5 Sep 2018 11:00:05 +0000 Message-Id: <1536145206-9205-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536145206-9205-1-git-send-email-odpbot@yandex.ru> References: <1536145206-9205-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 694 Subject: [lng-odp] [PATCH v2 4/5] 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: dc2fc3943e99a8bb113f9e34a27d9bf1b521ed5b **/ 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",