From patchwork Tue Feb 2 20:44:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 61041 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp972002lbb; Tue, 2 Feb 2016 12:44:53 -0800 (PST) X-Received: by 10.140.168.85 with SMTP id o82mr9062619qho.10.1454445893250; Tue, 02 Feb 2016 12:44:53 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f137si2628968qhc.116.2016.02.02.12.44.52; Tue, 02 Feb 2016 12:44:53 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 7AD136171C; Tue, 2 Feb 2016 20:44:52 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=OHsyIFnU; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, 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 4C2B4616EE; Tue, 2 Feb 2016 20:44:49 +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 B687F6170E; Tue, 2 Feb 2016 20:44:46 +0000 (UTC) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by lists.linaro.org (Postfix) with ESMTPS id CEAD661610 for ; Tue, 2 Feb 2016 20:44:45 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id xk3so290381obc.2 for ; Tue, 02 Feb 2016 12:44:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Gzisb/BPLrtjIkDzHFOLWZUQe2H5uK4jrfqUVNgrJkw=; b=OHsyIFnUgryUT5iWtTC5Lj3TAjh///xhapznFMtdnp7xdymzRi0b/ggJPrrgFwU8/O I8TnjwOPDiN/IX/S7vorP0OlFieW42bYr92YlFfw8m7PbKt70zzCD21wsbisQ1q887GA /aBPFYyJSFpSmv6LnHO1hVnrgb9+8nw7yILfE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Gzisb/BPLrtjIkDzHFOLWZUQe2H5uK4jrfqUVNgrJkw=; b=W14VAkIqRqh+hvHmno+blW7gTH81DZd15jFAjYFy0cNaX+5XvrDy2pQGiEm8u600Yo cdF9ceu1keX+MZJWqtDx1aEZlVs8ZOo61l9eqMc7Ip+aNAfDM/h2a5OICD/JmpRlHbIL kby5aoqaQv6vpJmBWM0KVBDAfeV2qd/u5rd5P34EPhWowkeRfzqRIV2VAz0swNFR8X+B IxvwCFJlg/FzdGbLFkFph08kGPU7XF7RafeiuMZhUY5YoPR7TUjEYefvQGRoxLxIJTRm xiLe5pD5sdZOHySVkTRfxAeEMO0IbpFwvqXGXqITWY1X4KmKwvHg6net7pLvvzj0S+Df QnwA== X-Gm-Message-State: AG10YORXSNZowDCdRWoMl1oIrhQqfmOTrv3KUeIE2i02Yc4D2aymUg3vejgkjdxYpuWuohPG80k= X-Received: by 10.182.92.234 with SMTP id cp10mr25499132obb.79.1454445885262; Tue, 02 Feb 2016 12:44:45 -0800 (PST) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id gp6sm1424312obb.19.2016.02.02.12.44.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Feb 2016 12:44:44 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 2 Feb 2016 14:44:39 -0600 Message-Id: <1454445879-27668-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 X-Topics: patch Subject: [lng-odp] [PATCH] validation: queue: add test for odp_queue_to_u64() 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Add missing validation test to resolve bug https://bugs.linaro.org/show_bug.cgi?id=2017 Signed-off-by: Bill Fischofer --- test/validation/queue/queue.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/validation/queue/queue.c b/test/validation/queue/queue.c index 3c1c64a..f05543a 100644 --- a/test/validation/queue/queue.c +++ b/test/validation/queue/queue.c @@ -61,6 +61,8 @@ void queue_test_sunnydays(void) queue_creat_id = odp_queue_create("test_queue", ODP_QUEUE_TYPE_POLL, &qparams); CU_ASSERT(ODP_QUEUE_INVALID != queue_creat_id); + CU_ASSERT(odp_queue_to_u64(queue_creat_id) != + odp_queue_to_u64(ODP_QUEUE_INVALID)); CU_ASSERT_EQUAL(ODP_QUEUE_TYPE_POLL, odp_queue_type(queue_creat_id));