From patchwork Thu Nov 30 11: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: 120133 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp514879qgn; Thu, 30 Nov 2017 03:03:08 -0800 (PST) X-Google-Smtp-Source: AGs4zMaqr3yC/n/V0iI+Fo+ZpT8fR/tRmKUXZ1Y+8SKPo/w7u/XWKJRLD/wHC1dwpR/uvCRZ8yqG X-Received: by 10.55.129.134 with SMTP id c128mr1935683qkd.162.1512039788335; Thu, 30 Nov 2017 03:03:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512039788; cv=none; d=google.com; s=arc-20160816; b=0MpTK4StDcErpxMz2NvTVBzzWiYbapaHQG1MJqt+/U8mPoqfqvYK2Mb8M8LrGmbJyc 00riN5163gWBdxAWqaFTOxCVbeE9WKx0iFNlrC04AKgbfsKinFIU02NL7/h88PbNeUDM wismbIu9nvkP9WiRoVtQugPTIOaMnMdmSdJVl9BXGgwu4SrSLWf+qwW2dQiAfj3GVWa8 u9ww70dkth7fSIJlkVm5ROzPqWwZ5dkGzEcQyyDj1L8BPE4B4q9WASfpS7myXQmYjeb6 /pWqn2L+/yIyUW9+XM0a2Qr/YwcGugEwHg+J7KgyTJE1nJAx2WjYKNWLeuy0Ptt0BK6C FDLg== 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=51wolfc/jHjozWnU9IL/KfhNe3TOLL2l7Wx5toeg8gk=; b=q9kT3Qfg0rCxcQt+Q5RbNzmvqvQnoe3F7xWHwbQgg4iJ8rpQKZUqiszm2qqWMFYjix EzaAAKytsPVOFJG3sG+pdefqxIBKopckd5N1D+bWDE2mrBMumV6ALnsTcQYKM56Sr1Kx Z7GKOMBmxGn0Frcn0XWvADjbLnFV1+lb8S4aozsmMzW6axAYsHH74mBRjJKhii4wKS3r CqKdzRSrkY3NENkPkU74Ff3S9dWYcFm4nobCqqwujCvgZW0fYClRCvjw4thFgUeVU1sK DD52VtR9yGDkK+JSvCN+1tR0rj7r3ZB3dkZhxFgWfUhIYEOY+fkikR2sC/DtdLZBWUoY pimg== 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 p187si4003070qkc.386.2017.11.30.03.03.07; Thu, 30 Nov 2017 03:03:08 -0800 (PST) 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 C9B8460943; Thu, 30 Nov 2017 11:03:07 +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,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 61AF26074A; Thu, 30 Nov 2017 11:01:16 +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 EFE1960958; Thu, 30 Nov 2017 11:01:06 +0000 (UTC) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) by lists.linaro.org (Postfix) with ESMTPS id 3312560905 for ; Thu, 30 Nov 2017 11:00:27 +0000 (UTC) Received: from mxback6g.mail.yandex.net (mxback6g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:167]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 99743218595F for ; Thu, 30 Nov 2017 14:00:17 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback6g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 2KDjamFMhG-0H1q2ml7; Thu, 30 Nov 2017 14:00:17 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id TjYY9mZD4X-0G2qbE14; Thu, 30 Nov 2017 14:00:16 +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: Thu, 30 Nov 2017 14:00:13 +0300 Message-Id: <1512039613-7090-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512039613-7090-1-git-send-email-odpbot@yandex.ru> References: <1512039613-7090-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 302 Subject: [lng-odp] [PATCH API-NEXT v2 3/3] validation: queue: refer to blocking level 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: Petri Savolainen Refer to the new blocking level capability and parameter fields to check that those exist. Signed-off-by: Petri Savolainen --- /** Email created from pull request 302 (psavol:next-lockfree-queue) ** https://github.com/Linaro/odp/pull/302 ** Patch: https://github.com/Linaro/odp/pull/302.patch ** Base sha: 4cb02e1caccb9179575e95448fd46979e17d0905 ** Merge commit sha: 2fb581ec76ff776f788da097894cb3f6b63ae23d **/ test/validation/api/queue/queue.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/validation/api/queue/queue.c b/test/validation/api/queue/queue.c index 1ec05b1fc..3c6db33ab 100644 --- a/test/validation/api/queue/queue.c +++ b/test/validation/api/queue/queue.c @@ -69,6 +69,8 @@ void queue_test_capa(void) CU_ASSERT(capa.sched_prios != 0); CU_ASSERT(capa.plain.max_num != 0); CU_ASSERT(capa.sched.max_num != 0); + CU_ASSERT(capa.plain.nonblocking >= ODP_BLOCKING); + CU_ASSERT(capa.sched.nonblocking >= ODP_BLOCKING); min = capa.plain.max_num; if (min > capa.sched.max_num) @@ -82,6 +84,7 @@ void queue_test_capa(void) name[ODP_QUEUE_NAME_LEN - 1] = 0; odp_queue_param_init(&qparams); + CU_ASSERT(qparams.nonblocking == ODP_BLOCKING); for (j = 0; j < 2; j++) { if (j == 0) {