From patchwork Sat Apr 16 17:55:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 65984 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp528445qge; Sat, 16 Apr 2016 10:57:57 -0700 (PDT) X-Received: by 10.55.163.16 with SMTP id m16mr33254523qke.75.1460829477760; Sat, 16 Apr 2016 10:57:57 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id v65si16613162qka.89.2016.04.16.10.57.57; Sat, 16 Apr 2016 10:57:57 -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 67EBE61B8C; Sat, 16 Apr 2016 17:57:57 +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 1151468797; Sat, 16 Apr 2016 17:55:55 +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 4FA0868787; Sat, 16 Apr 2016 17:55:47 +0000 (UTC) Received: from mail-ob0-f179.google.com (mail-ob0-f179.google.com [209.85.214.179]) by lists.linaro.org (Postfix) with ESMTPS id 604896877E for ; Sat, 16 Apr 2016 17:55:44 +0000 (UTC) Received: by mail-ob0-f179.google.com with SMTP id tz8so79164350obc.0 for ; Sat, 16 Apr 2016 10:55:44 -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=i2hnOKXV5/hryvViB72ugn6yHs9YDez5hzIjKJepIZ0=; b=KCfwClK/aNnxcjzEVgHsV4yHU2cXQQl7Q3aNdoGKj/YF7UBaMu6LAwx9CaE0K6L+4A w0/k9N2dsruuv9exLZdxrC4tvVOuOfCR8Q2j9+rj/bqX7155ANxLlwVdOcpHFc0/M+pn mj2LtsG+aiIjEF9JhmJ5Rby6z910UUeBfmIRVDmqqbZN4he1w7Fbf7wxLAaWjRFE9/NV xXXrQUK0epSs3vtW0mGLSIgG2fythMFA54k1IjuKvmyQQpya1caBYm2ibrPlEm/ee8XY vgdXO6am6ORy+prekBqn7wS3tBAS1acPTlidyHL03ZzvoQWwVPGE8UQfdwEqspB+xEEH +3/w== X-Gm-Message-State: AOPr4FVIApJo518CZflP+Lmh0tNYbLsTqAQgqSGwS/B2PmNXIsooxB6ocE97DGo3xNJRTa1IJz8= X-Received: by 10.60.0.99 with SMTP id 3mr13360112oed.10.1460829343909; Sat, 16 Apr 2016 10:55:43 -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 k125sm16528743oia.21.2016.04.16.10.55.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 16 Apr 2016 10:55:43 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Sat, 16 Apr 2016 12:55:37 -0500 Message-Id: <1460829337-31120-6-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1460829337-31120-1-git-send-email-bill.fischofer@linaro.org> References: <1460829337-31120-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv3 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 Reviewed-by: Bogdan Pricope --- 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));