From patchwork Mon Dec 29 16:53:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 42647 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B1D3425B8B for ; Mon, 29 Dec 2014 16:54:28 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id r20sf8289471wiv.9 for ; Mon, 29 Dec 2014 08:54:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=GfH+Bf4InTFSn13xNxxoUY2fIfepKwb87hwHCS2GEOE=; b=kUmeaUJ3OHbqpsqcZaHeJq5u9bUpIrdCr5YDJXXn/eXVRvOHkWKDSYhY56J089NHEK 7q2zrQiumdUFB+guAjD8NBYEPrgxYxCRuGjG916jAdeL3lA8/UvRsZuNvk9B3KcXqnCM PJk8q+GkqFi6SYFeU4pdNlcbUcT4y5Lv5A2RoZxSqQ/IcOQ1HB7rRrfFCHjvYPK8dFUx wh9Br76/KGnsAiVRD67EllZvYZ3vvE+Lkuc5hOuubqpByHy1uTLS1h/3JJezkqRMil4D QVJiMIROkJAi2Yhcv+VPOg0wntFEyF+8Zy70rzCJgIzwWajUU+yjipsVMFighNY2jj6u j0uA== X-Gm-Message-State: ALoCoQk2+yQ4t62EAkEAM5CsVhW0taIDf7pUbebpn+vjPWZhUzHMftlqjzvQPhXZVAQ0xgRfK0Bn X-Received: by 10.112.137.136 with SMTP id qi8mr326902lbb.13.1419872067797; Mon, 29 Dec 2014 08:54:27 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.131 with SMTP id e3ls758125lam.91.gmail; Mon, 29 Dec 2014 08:54:27 -0800 (PST) X-Received: by 10.112.41.234 with SMTP id i10mr58718608lbl.25.1419872067642; Mon, 29 Dec 2014 08:54:27 -0800 (PST) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id jo17si40226456lab.19.2014.12.29.08.54.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Dec 2014 08:54:27 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by mail-la0-f45.google.com with SMTP id gq15so11580494lab.32 for ; Mon, 29 Dec 2014 08:54:27 -0800 (PST) X-Received: by 10.112.136.69 with SMTP id py5mr56489135lbb.56.1419872067508; Mon, 29 Dec 2014 08:54:27 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp2836454lbb; Mon, 29 Dec 2014 08:54:26 -0800 (PST) X-Received: by 10.140.18.236 with SMTP id 99mr5351697qgf.52.1419872066205; Mon, 29 Dec 2014 08:54:26 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id m3si40733835qai.106.2014.12.29.08.54.25 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 29 Dec 2014 08:54:26 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y5daI-00039B-T3; Mon, 29 Dec 2014 16:54:22 +0000 Received: from mail-la0-f53.google.com ([209.85.215.53]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y5da8-00038Q-0e for lng-odp@lists.linaro.org; Mon, 29 Dec 2014 16:54:12 +0000 Received: by mail-la0-f53.google.com with SMTP id gm9so11297683lab.40 for ; Mon, 29 Dec 2014 08:54:06 -0800 (PST) X-Received: by 10.112.38.4 with SMTP id c4mr58370528lbk.46.1419872046418; Mon, 29 Dec 2014 08:54:06 -0800 (PST) Received: from condor-x220.synapse.com ([80.77.38.170]) by mx.google.com with ESMTPSA id vu9sm10059787lbb.36.2014.12.29.08.54.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Dec 2014 08:54:05 -0800 (PST) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Mon, 29 Dec 2014 18:53:54 +0200 Message-Id: <1419872035-12731-2-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] validation: buffer: fix invalid packet segment macro X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: taras.kondratiuk@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 ODP_PACKET_SEG_INVALID is a correct macro for an invalid packet segment. Signed-off-by: Taras Kondratiuk Reviewed-by: Bala Manoharan --- test/validation/buffer/odp_packet_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/validation/buffer/odp_packet_test.c b/test/validation/buffer/odp_packet_test.c index 57a9aa9..d073b49 100644 --- a/test/validation/buffer/odp_packet_test.c +++ b/test/validation/buffer/odp_packet_test.c @@ -267,7 +267,7 @@ static void _verify_tailroom_shift(odp_packet_t pkt, tail_orig = odp_packet_tail(pkt); seg = odp_packet_last_seg(pkt); - CU_ASSERT(seg != ODP_SEGMENT_INVALID); + CU_ASSERT(seg != ODP_PACKET_SEG_INVALID); seg_data_len = odp_packet_seg_data_len(pkt, seg); if (shift >= 0) { @@ -309,7 +309,7 @@ static void packet_tailroom(void) uint32_t push_val, pull_val; segment = odp_packet_last_seg(pkt); - CU_ASSERT(segment != ODP_SEGMENT_INVALID); + CU_ASSERT(segment != ODP_PACKET_SEG_INVALID); room = odp_packet_tailroom(pkt); #if ODP_CONFIG_PACKET_TAILROOM != 0 /* Avoid 'always true' warning */ CU_ASSERT(room >= ODP_CONFIG_PACKET_TAILROOM);