From patchwork Fri Mar 20 18:14:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 46153 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8A9B321418 for ; Fri, 20 Mar 2015 18:14:40 +0000 (UTC) Received: by labgq15 with SMTP id gq15sf18801239lab.0 for ; Fri, 20 Mar 2015 11:14:39 -0700 (PDT) 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:in-reply-to :references:cc: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=4e+azsIIP7c1qdJKVwTPhRFP7ZzSaW7T6z01lTK4D6E=; b=R5YaM2bFcwM6JzSNtHUsx7WHUNuvy7kbhPygrs36UOoK9OLe7zq0y5pih17u/4JVEd TfNR67rEfSKdif+n+gTyo1nUL6e+EZMnomVkNYctrKgiWW/utD7eY3eh2GLRpMnmwfL3 +v8M/7njVfo8jFJdVZgpiqlJ9sbdltsXEWLa6t6qFTGMHKMqESLZVZJKFDhuqWkf0z9D qUznehS8NN25y6SDgcQbWr0tvgqWCMAxOrt/uO69Y+EQs2majD+EoEQ7MmjoLb7y0Y23 ensF3hDNUAPdp2odC+5XL+auT1MH9U6W3LkoF0zFepT6JX0beUQVpL5um2yRNsq6DCRT BhuA== X-Gm-Message-State: ALoCoQkO1Y6ri0hOBZqUc+Wef2wHWWjfahPxbGPHEZaYYFyCMgiZnWXRg/6GPsX6ae7U4g1V5yx6 X-Received: by 10.180.80.132 with SMTP id r4mr924123wix.4.1426875279495; Fri, 20 Mar 2015 11:14:39 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.168 with SMTP id a8ls428835lab.14.gmail; Fri, 20 Mar 2015 11:14:39 -0700 (PDT) X-Received: by 10.153.4.135 with SMTP id ce7mr5634492lad.91.1426875279043; Fri, 20 Mar 2015 11:14:39 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id g4si3632417lbs.114.2015.03.20.11.14.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Mar 2015 11:14:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by ladw1 with SMTP id w1so93307797lad.0 for ; Fri, 20 Mar 2015 11:14:38 -0700 (PDT) X-Received: by 10.112.162.232 with SMTP id yd8mr7471242lbb.41.1426875278700; Fri, 20 Mar 2015 11:14:38 -0700 (PDT) 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.35.133 with SMTP id h5csp209465lbj; Fri, 20 Mar 2015 11:14:38 -0700 (PDT) X-Received: by 10.52.240.33 with SMTP id vx1mr58070602vdc.3.1426875274424; Fri, 20 Mar 2015 11:14:34 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id p13si4462020vdj.57.2015.03.20.11.14.32 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 20 Mar 2015 11:14:34 -0700 (PDT) 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 1YZ1RG-0001ok-PB; Fri, 20 Mar 2015 18:14:30 +0000 Received: from mail-ob0-f171.google.com ([209.85.214.171]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YZ1R5-0001ni-Mx for lng-odp@lists.linaro.org; Fri, 20 Mar 2015 18:14:19 +0000 Received: by obcjt1 with SMTP id jt1so63736647obc.2 for ; Fri, 20 Mar 2015 11:14:14 -0700 (PDT) X-Received: by 10.202.64.9 with SMTP id n9mr62504636oia.20.1426875254456; Fri, 20 Mar 2015 11:14:14 -0700 (PDT) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id by10sm2915225oec.8.2015.03.20.11.14.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Mar 2015 11:14:14 -0700 (PDT) From: Bill Fischofer To: petri.savolainen@linaro.org Date: Fri, 20 Mar 2015 13:14:04 -0500 Message-Id: <1426875244-23072-3-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1426875244-23072-1-git-send-email-bill.fischofer@linaro.org> References: <1426875244-23072-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [API-NEXT PATCHv2 3/3] validation: packet: use true == non-zero per ODP API Guidelines 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: bill.fischofer@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.47 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 This change addresses Bug https://bugs.linaro.org/show_bug.cgi?id=1334 Signed-off-by: Bill Fischofer --- test/validation/odp_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/validation/odp_packet.c b/test/validation/odp_packet.c index 8f764bf..0c1d069 100644 --- a/test/validation/odp_packet.c +++ b/test/validation/odp_packet.c @@ -425,7 +425,7 @@ do { \ odp_packet_has_##flag##_set(packet, 0); \ CU_ASSERT(odp_packet_has_##flag(packet) == 0); \ odp_packet_has_##flag##_set(packet, 1); \ - CU_ASSERT(odp_packet_has_##flag(packet) == 1); \ + CU_ASSERT(odp_packet_has_##flag(packet) != 0); \ } while (0) static void packet_in_flags(void)