From patchwork Tue Sep 4 20:00:03 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: 145952 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp4085653ljw; Tue, 4 Sep 2018 13:00:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZlSxQt6yApNeUmitTSWcypu6v1Z6hBefwVIBnJzS5omtAgnzwajIZWBKN23drnk994jFHW X-Received: by 2002:aed:278b:: with SMTP id a11-v6mr31964874qtd.106.1536091246158; Tue, 04 Sep 2018 13:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536091246; cv=none; d=google.com; s=arc-20160816; b=LEfU04F2FWKUws/wSwe9fFSlDhXJk6pPPyMVQyN4wrmtqto66Y3B8HyN32bFOX7g3R eKDJCrBa98Z44KZB2nBrRMdr8CEWaO+FMHnt2ULHospdc6FgA8dLudtGPzy4Yg4xMSKj TsJlzR5s2qpMZDl7n2ZbFVLGpZ3B9wSg5RccTObWgPMeUEeflNiJ07egvpgAk4ybXv5i QCn5Dzm8sFhzUGu1TjdWqllHmDgzeq9hCBZGtC4GoR6oCWGwPWFd6uD8pFyIeGZeGeNp IerjA3EuGi+jLPNG4cIssxJAW4eTlgZ5EabkPZrtX2rB2mAawLcq5WsMUbOqAQ3UjD64 YBMQ== 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=X0ucyFNUrYmXENzgId3ns2KSS43iSNISgInkvay1sRE=; b=N6rPgTUn/BUyCtNscc5mNmRns00nGI20hJcudYf4tvxCirxYAkGzV2oRdSd1lDLbWc AjxZwOuGEsaUkaa1uRiUevOe4Ho+GW9HiqMooTbjJG2Q3wvc5z5APp8m7mECDwb2oHSw ZL/DbKTek8tvPM6s1Jm0B0VA7vTGEHbtgIzxlG+XWKe25CQnMM2kgqanIMhXF6u3gJhp HxftFs9FExiQFOwVBL2lezBStnGm60YVyAV3l6EHCORFEgbZ854F/f2LsY9KCaWz8+O6 sJwyxYVWaUZUKmBbwNKoqvRpgNPyo5yjssdGRKhK2UZQEK8Fs7N1s04XAXerg/xvnVfI C9Qw== 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 l47-v6si1414144qvc.189.2018.09.04.13.00.45; Tue, 04 Sep 2018 13:00:46 -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 DA889685BD; Tue, 4 Sep 2018 20:00:45 +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 38E0B68640; Tue, 4 Sep 2018 20:00:17 +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 DF0046863A; Tue, 4 Sep 2018 20:00:12 +0000 (UTC) Received: from forward100o.mail.yandex.net (forward100o.mail.yandex.net [37.140.190.180]) by lists.linaro.org (Postfix) with ESMTPS id BA03967B5F for ; Tue, 4 Sep 2018 20:00:11 +0000 (UTC) Received: from mxback8g.mail.yandex.net (mxback8g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:169]) by forward100o.mail.yandex.net (Yandex) with ESMTP id 0D2DC2A20101 for ; Tue, 4 Sep 2018 23:00:09 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback8g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id M01zrq1kCg-08A0kWdw; Tue, 04 Sep 2018 23:00:08 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id lXapyhRv4D-08KOu64g; Tue, 04 Sep 2018 23:00:08 +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:03 +0000 Message-Id: <1536091206-7970-2-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 1/4] validation: time: fix c&p error 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/time/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/validation/api/time/time.c b/test/validation/api/time/time.c index e24012285..27ddc97fd 100644 --- a/test/validation/api/time/time.c +++ b/test/validation/api/time/time.c @@ -413,7 +413,7 @@ static void time_test_wait_ns(void) if (odp_time_cmp(diff, upper_limit) > 0) { fprintf(stderr, "Exceed upper limit: " "diff is %" PRIu64 ", upper_limit %" PRIu64 "\n", - odp_time_to_ns(diff), odp_time_to_ns(lower_limit)); + odp_time_to_ns(diff), odp_time_to_ns(upper_limit)); CU_FAIL("Exceed upper limit\n"); } } From patchwork Tue Sep 4 20:00:04 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: 145955 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp4087153ljw; Tue, 4 Sep 2018 13:01:48 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYZf86jBl60FRZHAzjbXWPWXFYb7KbtDqNtGg1GYu/ulZc6fQbDYsHw41QO7SGlS8HDnmKM X-Received: by 2002:a37:283:: with SMTP id v3-v6mr30558107qkg.200.1536091308205; Tue, 04 Sep 2018 13:01:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536091308; cv=none; d=google.com; s=arc-20160816; b=iP5pXaLvj3dyXu5WIIw96e+xdhJ0DulJZncq2HNZgX6v3qGqmjADCwRxQ3jESKesJb Y4v6EQVTes+r8lpJOfRUm3e324CR8KxbaMivvn0f2sXLEOuH084GCTP/yGN/VaQTspXG dfCGzLb7fWLCwJdRlRpQMOvIhBvWkZ2AHpO+o84qqJlwRdjCoCIgcLOJqhxm4VFL8iQ0 ZeTozYw1sWsYBRZKBB3pYI+V9zjdSSmCw78yxuBwIsmE2CaXSRjjdrconKGOZ+Be0iOq WVsMIHub0T+O2WApVXcsPZimqE5+RSZ3hqJxUOwD8hy/RN06Zz/NNCSm/3tcQw0TMgi2 3M6w== 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=cIx9T18jExJPc1/pvdsbNZ7sz9Tx3l8h2qopN7OyL/0=; b=coIh9cM8n6YLyenVkW5TYzIZhC3EN+hTqiCiRLNLC/+tBv8BnxCIcrujALE79JHNFG 6G3DypohR4S2hNbEpwEwgwUUjpaBDaL27H8nbuGL8NjeQwrEThVLHYdKAcnIh0TyUBOl ntld3kTMzBZ0DgkOor5EfsCyRwBSuIcY3vuC16JCWppedBcEY99NRZTDxsms3D51elu2 wq7WPvQQj/5H5aLWh3HM2GcwNDGWK71XxDp4ElOQoJ2OVxN6603u+5EPChGHlJYjUEnZ CGWb0vxYbsCbde0kJdkbHzG7Go2RH/qHYaqhgM9px+JlHl75Nudf2mA5i4z7hrToRah9 7/5w== 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 d79-v6si6565215qke.334.2018.09.04.13.01.47; Tue, 04 Sep 2018 13:01:48 -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 C883B68650; Tue, 4 Sep 2018 20:01:47 +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 7055E68656; Tue, 4 Sep 2018 20:00:29 +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 980C66864D; Tue, 4 Sep 2018 20:00:20 +0000 (UTC) Received: from forward101j.mail.yandex.net (forward101j.mail.yandex.net [5.45.198.241]) by lists.linaro.org (Postfix) with ESMTPS id EB7A06863B for ; Tue, 4 Sep 2018 20:00:13 +0000 (UTC) Received: from mxback2j.mail.yandex.net (mxback2j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10b]) by forward101j.mail.yandex.net (Yandex) with ESMTP id D824712478A5 for ; Tue, 4 Sep 2018 23:00:09 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback2j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id De3pbqHDzo-09R0RkBe; Tue, 04 Sep 2018 23:00:09 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id lXapyhRv4D-09K081cq; Tue, 04 Sep 2018 23:00:09 +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:04 +0000 Message-Id: <1536091206-7970-3-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 2/4] validation: time: 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/time/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/validation/api/time/time.c b/test/validation/api/time/time.c index 27ddc97fd..38c0906ba 100644 --- a/test/validation/api/time/time.c +++ b/test/validation/api/time/time.c @@ -14,7 +14,7 @@ #define BUSY_LOOP_CNT_LONG 6000000000 /* used for t > 4 sec */ #define MIN_TIME_RATE 32000 #define MAX_TIME_RATE 15000000000 -#define DELAY_TOLERANCE 20000000 /* deviation for delay */ +#define DELAY_TOLERANCE 40000000 /* deviation for delay */ #define WAIT_SECONDS 3 static uint64_t local_res; From patchwork Tue Sep 4 20: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: 145954 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp4086974ljw; Tue, 4 Sep 2018 13:01:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY7Cp1nl6rDrqQ6QnqjqG3uS3OZ+OwoG1lPiT5i9j3JODi+q6NLwaPZguJhQxyjYxicjQMF X-Received: by 2002:ac8:3790:: with SMTP id d16-v6mr32257923qtc.128.1536091301912; Tue, 04 Sep 2018 13:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536091301; cv=none; d=google.com; s=arc-20160816; b=Oii0KUNuDVk+g64MTKKQslyYPRqF/csMLyFUHngDV+M77NGadB8k4WZQQUsjF9RZn9 ngu6SKnbCpnqI82MAaoTzdVFfMZ7ULV8RprOmQEwadfR/zKG8WdP6+dT7LcdBA1SrarN 7bSsFumpIK7AFgKj32E9sqfFCBWiuWxH3lF9Mz72LjUktrHQjTxrW1+xu4uDgnwjY4VS HIImB4yV6lEdtxF3OvkQmrlBjrEyRvTjBRDmtQZiBAtpuwPFA99+KWwwGj07+R5BsysA aTQYl3mkRr+OirqrlWAZzvhrTy+aA3nc4a/grI+qYlPYMeqOiAsYZOxOcTNup8JF/E5R 56QA== 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=ISH+7K4PBSiUIzUjCIRiFBkM6p35PscHp9jnsDbSyxA=; b=GMS7d55uJiYpqu26CjkRFZAIE6Im3MaZzZ43JKxGpch8kF9hnk4pTEw4pGEdjndRDu 5JrJxnGUUkgTdeSNGbgO1x3pza467ZETnltqXKAW2fB+GfLMVHhjBv/rszCmx/rvsxgs Ggc9LXuORpQvrB8pt6H42dmZlJTQQwjrr5ryQM8L6IZqTAUF1x/x5Up/Yl4iISvjhH1D iGtvhw8dxfLKavu3gTY1vSrmEbmFy8omlk8gGbCBhHe1v9qwnw4TZ3CKu57n+yka7xRp z2e3ilHN6fOFVJtoPpMALVdNJ1vKG7yQ3nKHwdvvNnIm5uQBltdRuibKbtapYdvSHoIn sqJA== 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 j31-v6si4696551qtd.364.2018.09.04.13.01.41; Tue, 04 Sep 2018 13:01:41 -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 826566865F; Tue, 4 Sep 2018 20:01:41 +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 CD37567B5F; Tue, 4 Sep 2018 20:00:25 +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 210566864F; Tue, 4 Sep 2018 20:00:20 +0000 (UTC) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [5.45.198.248]) by lists.linaro.org (Postfix) with ESMTPS id B17D667B5F for ; Tue, 4 Sep 2018 20:00:13 +0000 (UTC) Received: from mxback9g.mail.yandex.net (mxback9g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:170]) by forward105j.mail.yandex.net (Yandex) with ESMTP id 0C2C1184CA1 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 mxback9g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 4rO6uZEmvq-0ADKcwst; Tue, 04 Sep 2018 23:00:10 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id lXapyhRv4D-09KCY5NP; Tue, 04 Sep 2018 23:00:10 +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:05 +0000 Message-Id: <1536091206-7970-4-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 3/4] validation: scheduler: print debug diagnostics on test_wait failure 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/scheduler/scheduler.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/test/validation/api/scheduler/scheduler.c b/test/validation/api/scheduler/scheduler.c index 2e44d3248..069220393 100644 --- a/test/validation/api/scheduler/scheduler.c +++ b/test/validation/api/scheduler/scheduler.c @@ -185,8 +185,19 @@ static void scheduler_test_wait_time(void) upper_limit = odp_time_local_from_ns(5 * ODP_TIME_SEC_IN_NS + ODP_WAIT_TOLERANCE); - CU_ASSERT(odp_time_cmp(diff, lower_limit) >= 0); - CU_ASSERT(odp_time_cmp(diff, upper_limit) <= 0); + if (odp_time_cmp(diff, lower_limit) <= 0) { + fprintf(stderr, "Exceed lower limit: " + "diff is %" PRIu64 ", lower_limit %" PRIu64 "\n", + odp_time_to_ns(diff), odp_time_to_ns(lower_limit)); + CU_FAIL("Exceed lower limit\n"); + } + + if (odp_time_cmp(diff, upper_limit) >= 0) { + fprintf(stderr, "Exceed upper limit: " + "diff is %" PRIu64 ", upper_limit %" PRIu64 "\n", + odp_time_to_ns(diff), odp_time_to_ns(upper_limit)); + CU_FAIL("Exceed upper limit\n"); + } CU_ASSERT_FATAL(odp_queue_destroy(queue) == 0); } 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",