From patchwork Wed Aug 26 15:11:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 52729 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id C903E22E9E for ; Wed, 26 Aug 2015 15:11:34 +0000 (UTC) Received: by wicul11 with SMTP id ul11sf7164110wic.1 for ; Wed, 26 Aug 2015 08:11:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=dPZ9sZKmbLT3I/YpxZj1gUdcEuZ/jhceqwDyfQb5Gyk=; b=mkbZIZ88jmt3GLGt7RHyY9JtkEs7A2b0DW/Khxn+5KWnB2RXNAVwo6fD6W0xBTp5do tQyuYdxkqTCHNh4p8Dat4p8DPiuC3tMihwdQkJPH3B5SIrjwl4ndOcAKLxcoDGLG7Eg1 8IlvKdHPLrYugsIreuL5OiJZ4iLn0ByY1LnDD7ElCInil1KpQxFDPCXx4OTmmINK07e5 xmcUhDH+JWxvq/MxTa7naUBf1PpbDi3C8qpBr736qu70Ekwc6WwrVRRVi5xmxpatUWGy eYap25/7Z1NDh9P3b9ObPLfg+yNW1cLI61c4OmqBV9Yc4DObGwK25QKEJ2uSBa5TSsjb fBSA== X-Gm-Message-State: ALoCoQmSDdbzJKcKPNVg8PLh17ExZ++CcNid31AP39H4hKgMCG75LI50eAI0IM2j0CsTS0F9j88b X-Received: by 10.194.19.33 with SMTP id b1mr10226808wje.6.1440601894160; Wed, 26 Aug 2015 08:11:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.234 with SMTP id w10ls830637lag.41.gmail; Wed, 26 Aug 2015 08:11:34 -0700 (PDT) X-Received: by 10.152.22.168 with SMTP id e8mr31016277laf.40.1440601893979; Wed, 26 Aug 2015 08:11:33 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id na3si18970101lbb.178.2015.08.26.08.11.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Aug 2015 08:11:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by laba3 with SMTP id a3so121578316lab.1 for ; Wed, 26 Aug 2015 08:11:33 -0700 (PDT) X-Received: by 10.112.219.70 with SMTP id pm6mr30348440lbc.41.1440601892979; Wed, 26 Aug 2015 08:11:32 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.162.200 with SMTP id yc8csp3986764lbb; Wed, 26 Aug 2015 08:11:32 -0700 (PDT) X-Received: by 10.55.198.11 with SMTP id b11mr73290173qkj.53.1440601892082; Wed, 26 Aug 2015 08:11:32 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a21si4937137qka.76.2015.08.26.08.11.30; Wed, 26 Aug 2015 08:11:31 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 79B8D61B6E; Wed, 26 Aug 2015 15:11:30 +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=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED 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 A57A061B5B; Wed, 26 Aug 2015 15:11: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 3B6E261B5C; Wed, 26 Aug 2015 15:11:24 +0000 (UTC) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by lists.linaro.org (Postfix) with ESMTPS id 3C8D661B43 for ; Wed, 26 Aug 2015 15:11:23 +0000 (UTC) Received: by wicja10 with SMTP id ja10so47690842wic.1 for ; Wed, 26 Aug 2015 08:11:22 -0700 (PDT) X-Received: by 10.194.22.33 with SMTP id a1mr59209708wjf.90.1440601882178; Wed, 26 Aug 2015 08:11:22 -0700 (PDT) Received: from khorivan.synapse.com ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id w8sm8075129wiy.10.2015.08.26.08.11.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Aug 2015 08:11:20 -0700 (PDT) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Wed, 26 Aug 2015 18:11:13 +0300 Message-Id: <1440601873-22462-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [Patch] validation: scheduler: increase time check X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ivan.khoronzhuk@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 It's needed because time resolution can be a little more than 1ns and in this case odp_schedule_wait_time(1) returns 0, and test generates warn w/o reason. So increase scheduler wait time check from 1ns to 100ns. It's hard to imagine time source with resolution more than 100ns, so every implementation can return positive value from odp_schedule_wait_time(). In case if resolution is more than 100ns it's normal to warn about it at validation stage, Signed-off-by: Ivan Khoronzhuk --- test/validation/scheduler/scheduler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/validation/scheduler/scheduler.c b/test/validation/scheduler/scheduler.c index 788f5c7..42f889a 100644 --- a/test/validation/scheduler/scheduler.c +++ b/test/validation/scheduler/scheduler.c @@ -84,7 +84,7 @@ void scheduler_test_wait_time(void) wait_time = odp_schedule_wait_time(0); - wait_time = odp_schedule_wait_time(1); + wait_time = odp_schedule_wait_time(100); CU_ASSERT(wait_time > 0); wait_time = odp_schedule_wait_time((uint64_t)-1LL);