From patchwork Thu Apr 14 21:06:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 65855 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp825984qge; Thu, 14 Apr 2016 14:08:55 -0700 (PDT) X-Received: by 10.140.202.81 with SMTP id x78mr21956544qha.15.1460668134974; Thu, 14 Apr 2016 14:08:54 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l189si33911623qhl.13.2016.04.14.14.08.54; Thu, 14 Apr 2016 14:08:54 -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=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 84DE0684D7; Thu, 14 Apr 2016 21:08:54 +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 6D7286854B; Thu, 14 Apr 2016 21:07:20 +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 E39476869C; Thu, 14 Apr 2016 21:07:16 +0000 (UTC) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by lists.linaro.org (Postfix) with ESMTPS id 6D1A3685C4 for ; Thu, 14 Apr 2016 21:06:48 +0000 (UTC) Received: by mail-oi0-f45.google.com with SMTP id p188so105995593oih.2 for ; Thu, 14 Apr 2016 14:06:48 -0700 (PDT) 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:in-reply-to :references; bh=4jvYO6kTUtkhnYHA+ltTe6aPBPCDCBArJRYqk9ku+rE=; b=aTLrBsLeTHWpp3Isd7tRQmHHzhpt/II6a8ATw8L1f5i3iPCUSyIb9dScYRPUOmPY2N Acv3W5Y4ZfMjJn9vm9b2SlP+WFTayY467vlPpmuW0fJIL4Zf67ZPFetYMkAbVwwd7X+4 KRfKb26/OoMTvs9VYrauFZPcbEQlLOT0na6vwZtek6eaM/CTFgqvnntIUuvnKYhwLQ+h 2CtqKinTJWEI2IKhz8R7xknuODRiIvJTN/jtfC+nf9YqQxfxGqO/exkKLtxJuA2F7FGr jKLFYmhqLC+nxCcMxzR/NAUQn59Vgiv1yQ960b7jA8iwLqCSLgQKv0xKjmokULT1OTPt TkbQ== X-Gm-Message-State: AOPr4FURdxDE6uZm3iXbES5UeF3/BMKJgVnc7O1iCzkfLVrtyPSDwN93BqI/cnfu9C6H/eKKfX8= X-Received: by 10.157.43.59 with SMTP id o56mr8239090otb.25.1460668007922; Thu, 14 Apr 2016 14:06:47 -0700 (PDT) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id xm14sm13871138oeb.17.2016.04.14.14.06.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Apr 2016 14:06:47 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 14 Apr 2016 16:06:41 -0500 Message-Id: <1460668001-25533-6-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1460668001-25533-1-git-send-email-bill.fischofer@linaro.org> References: <1460668001-25533-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 6/6] validation: test: add test for odp_packet_input_index() 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" Signed-off-by: Bill Fischofer --- test/validation/packet/packet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/validation/packet/packet.c b/test/validation/packet/packet.c index a764ed9..e28b9a6 100644 --- a/test/validation/packet/packet.c +++ b/test/validation/packet/packet.c @@ -252,6 +252,7 @@ void packet_test_basic_metadata(void) CU_ASSERT(odp_packet_pool(pkt) != ODP_POOL_INVALID); /* Packet was allocated by application so shouldn't have valid pktio. */ CU_ASSERT(odp_packet_input(pkt) == ODP_PKTIO_INVALID); + CU_ASSERT(odp_packet_input_index(pkt) < 0); odp_packet_flow_hash_set(pkt, UINT32_MAX); CU_ASSERT(odp_packet_has_flow_hash(pkt));