From patchwork Fri Sep 15 07:00:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 112682 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp293926qgf; Fri, 15 Sep 2017 00:05:36 -0700 (PDT) X-Google-Smtp-Source: AOwi7QAmsqX8465D1uHxZMTIzb3xW8gti6pcSKYAzw2tp1r+/F5Lv0yiHJ1Mm0Y8WYnjJ4FEB8It X-Received: by 10.200.25.78 with SMTP id g14mr33877922qtk.48.1505459136801; Fri, 15 Sep 2017 00:05:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505459136; cv=none; d=google.com; s=arc-20160816; b=JJk3F3DLOOPp5IbYuZI8s4M8uj5Q2RAa1NqEowdwKX/g1JgevkdzdGsjnvy/dYDF3v Rz2bJYzbkTQWTqyl6sRWikLAsvGuoxsHjJIlAVjsnG0EJmvOAheOwB3QLuOpRFhiwRJJ SK71ZhvMkH1k0AFAm1mFGhB/TU7/XX1zrL4YHbvoXPouKT3oidzF9ZYfVa4CJxXxuUl6 ZgzRLvJV/EeEP0AMGAaSKC1+n+hIId+vkbUs2/7BvJlyq/dCqHaJYM5ri9xNjK0zvTtd bk1FpQAxWDk5Jcz5lXtBHPspL608L/NPU8fI5zjW0Xagrlh4gWDulnZZWpFBY4DXxFaj cdag== 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=CXD7eqnXyNSrx2lJPqceTK+UavJ4pNjY++sCbj9R+Qc=; b=xVz+d+7M5SE5APE6sZsWkUAGw810q7rWZzgb1YX8UIvSVyIM6heI/lECnqV4BtGXfS Ak30vrEw5gPCzh/s7qTN7WaW5aKbnRp1pCP1XkYFYlJWOyXGn9vkOBL791bTw/b8onFW c8kk7D61csmjHkGhYvPTXDaMBR6gvRkCTAc+CZE9dMrvHTAiIRrkNosM4Ro2YnV23SL5 6IBtENT1v8LZpJC1rQyIlmbZXxzVltRC8lqlnNbVnX/zU3jVZOMgrE2UiYYelkexbRKK GzM39DEKTRvAIe6aS5W2KHYwAW3a5W7OBa5x7psPJwTKri4T+7fJI3QZYj7TsiSXrOLA J5KA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 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 (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id p64si281910qkc.349.2017.09.15.00.05.36; Fri, 15 Sep 2017 00:05:36 -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; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 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 70601609FF; Fri, 15 Sep 2017 07:05:36 +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,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,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 57C3D60A6D; Fri, 15 Sep 2017 07:01:12 +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 53F4960924; Fri, 15 Sep 2017 07:00:42 +0000 (UTC) Received: from forward101p.mail.yandex.net (forward101p.mail.yandex.net [77.88.28.101]) by lists.linaro.org (Postfix) with ESMTPS id 0A7D46097D for ; Fri, 15 Sep 2017 07:00:34 +0000 (UTC) Received: from mxback3g.mail.yandex.net (mxback3g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:164]) by forward101p.mail.yandex.net (Yandex) with ESMTP id EEE906A869DB for ; Fri, 15 Sep 2017 10:00:32 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback3g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id mKBWJYHBkY-0WjW5UXb; Fri, 15 Sep 2017 10:00:32 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id lLHR2ftQSF-0WtihmKK; Fri, 15 Sep 2017 10:00:32 +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: Fri, 15 Sep 2017 10:00:13 +0300 Message-Id: <1505458814-11509-8-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505458814-11509-1-git-send-email-odpbot@yandex.ru> References: <1505458814-11509-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 160 Subject: [lng-odp] [PATCH API-NEXT v12 7/8] test: validation: queue: change order lock data type 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: Balasubramanian Manoharan change oder lock count data type from unsigned to uint32_t Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 160 (bala-manoharan:api_sched_order_lock) ** https://github.com/Linaro/odp/pull/160 ** Patch: https://github.com/Linaro/odp/pull/160.patch ** Base sha: 6b6253c30f88c80bf632436ff06c1b000860a2f1 ** Merge commit sha: 8654cc5ecbcd8f0299a0c56a1e2ff23ba87c1d67 **/ test/common_plat/validation/api/queue/queue.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/common_plat/validation/api/queue/queue.c b/test/common_plat/validation/api/queue/queue.c index 94d0a2fd8..1ec05b1fc 100644 --- a/test/common_plat/validation/api/queue/queue.c +++ b/test/common_plat/validation/api/queue/queue.c @@ -267,9 +267,9 @@ void queue_test_info(void) odp_queue_capability_t capability; char q_plain_ctx[] = "test_q_plain context data"; char q_order_ctx[] = "test_q_order context data"; - unsigned lock_count; + uint32_t lock_count; char *ctx; - int ret; + uint32_t ret; /* Create a plain queue and set context */ q_plain = odp_queue_create(nq_plain, NULL); @@ -314,8 +314,8 @@ void queue_test_info(void) CU_ASSERT(info.param.sched.sync == odp_queue_sched_type(q_order)); CU_ASSERT(info.param.sched.group == odp_queue_sched_group(q_order)); ret = odp_queue_lock_count(q_order); - CU_ASSERT(ret >= 0); - lock_count = (unsigned)ret; + CU_ASSERT(ret > 0); + lock_count = ret; CU_ASSERT(info.param.sched.lock_count == lock_count); CU_ASSERT(odp_queue_destroy(q_plain) == 0);