From patchwork Thu Mar 26 16:07:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 46369 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EC02F21585 for ; Thu, 26 Mar 2015 16:08:14 +0000 (UTC) Received: by wgs2 with SMTP id 2sf5652152wgs.3 for ; Thu, 26 Mar 2015 09:08:14 -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: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=FDVGLOdjO9B7VUi82hBH902eUfLcNHZk1sklwhezsgI=; b=j9tkWKi5B+Ax6TPANVG51rEuMpazSs3BR9BcC7l2wtcU0k4bImmwF4Uc1vPC6CcxaS 6PvYHcHpuLKL/Mcek/qBQ/pJYGsV0hh5q4vWqdebwfNEFut3Eak3Gx7wCM0gNL/8Azrw M8hQoyZEvfIMg5WHr0zOvSYeVDbkv9tXIGbvZO53w7HX0bh9SU20L2WwxW99VhzK93jK rRr7vbLR8iMczJfl2Eb+QlXkQSuOZmKLW8un0cvPCxnlMdpeiuzKgiw6npGknyWl49Tk RFLrepA6yUuKVVSpVLKggco3FOpfrzqmEQeWLu1vwpowtMJFjDtRILo4VEFwBcYzqWBi 5Mkg== X-Gm-Message-State: ALoCoQlhZQ8z/nSSt8qBbRrr7fFIa36+msbrKtCgX6OCT0gtwahTYGNGRTpWHvBVBeq/qyC6/pZs X-Received: by 10.194.201.10 with SMTP id jw10mr3559905wjc.3.1427386094276; Thu, 26 Mar 2015 09:08:14 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.206 with SMTP id q14ls296462lal.49.gmail; Thu, 26 Mar 2015 09:08:14 -0700 (PDT) X-Received: by 10.152.2.130 with SMTP id 2mr13642190lau.120.1427386094063; Thu, 26 Mar 2015 09:08:14 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id pj4si4911285lbb.120.2015.03.26.09.08.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Mar 2015 09:08:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbbsy1 with SMTP id sy1so44515770lbb.1 for ; Thu, 26 Mar 2015 09:08:14 -0700 (PDT) X-Received: by 10.112.141.202 with SMTP id rq10mr14008730lbb.88.1427386093973; Thu, 26 Mar 2015 09:08:13 -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.57.201 with SMTP id k9csp704756lbq; Thu, 26 Mar 2015 09:08:13 -0700 (PDT) X-Received: by 10.52.153.168 with SMTP id vh8mr17917261vdb.60.1427386091631; Thu, 26 Mar 2015 09:08:11 -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 jq6si7608463vdb.83.2015.03.26.09.08.04 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 26 Mar 2015 09:08:11 -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 1YbAKA-0007nC-NF; Thu, 26 Mar 2015 16:08:02 +0000 Received: from mail-ob0-f182.google.com ([209.85.214.182]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YbAK4-0007mx-SZ for lng-odp@lists.linaro.org; Thu, 26 Mar 2015 16:07:56 +0000 Received: by obbgg8 with SMTP id gg8so49627565obb.1 for ; Thu, 26 Mar 2015 09:07:51 -0700 (PDT) X-Received: by 10.202.170.72 with SMTP id t69mr12001195oie.21.1427386071582; Thu, 26 Mar 2015 09:07:51 -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 ut10sm4639447obc.20.2015.03.26.09.07.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Mar 2015 09:07:51 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 26 Mar 2015 11:07:46 -0500 Message-Id: <1427386066-3289-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Subject: [lng-odp] [PATCHv3] validation: packet: use non-zero as true indicator 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.217.172 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 --- Note that for v3 this patch is split. The test change doe not affect the ODP API and hence can be merged as part of the next ODP maintenance release. The API change (just doxygen) is posted to API-NEXT for inclusion in the next API update release. test/validation/odp_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.1.0 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)