From patchwork Thu Feb 26 12:37:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 45164 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A84DA2043C for ; Thu, 26 Feb 2015 12:37:47 +0000 (UTC) Received: by wghk14 with SMTP id k14sf7801806wgh.0 for ; Thu, 26 Feb 2015 04:37:46 -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:in-reply-to :references: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=NYR6KJOPiPrKvL0HdOtgYR8IMOx6PAKd+qPxzAGIgFw=; b=M1r00T/B7x9giosPn++YCyxr6wlZJ4uxmhqDlYjwqCRcPw9eeOeme4aMN3EPXRQDVi RgbtsPX8M9cxKjHybOJjYRmXSaU17xGDuYUxwWmwn++FgE4f1RDI5uG3oojY4CL8n7Sg RzKZ3qmRNk/rwSdDtSolYgVcwwGl6/4hq8HTq5c3q+B//xmepv6Ayc/nVKUg3UgSp7u+ xxfl6PDT+lheuJy0P0t2pHgUny0zSMuy6TUfg41TGs15JGAF8Kp2vqepH2kk5UwgJ7yJ w4h3tlvsk9jtX2YKWmol8TJ3yTu+XMvqNxDA24i6zenkunqrqplNHcFQqqP9pi2PhMu2 xFoA== X-Gm-Message-State: ALoCoQk8u7oRBkKu2/T35nJRTcleDmiZWHdDWEnD9WMNNdqSqI4WuL2lr/fq+P415dZGi0LPBoHh X-Received: by 10.112.9.65 with SMTP id x1mr1285659lba.16.1424954266594; Thu, 26 Feb 2015 04:37:46 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.207.101 with SMTP id lv5ls30396lac.22.gmail; Thu, 26 Feb 2015 04:37:46 -0800 (PST) X-Received: by 10.152.10.98 with SMTP id h2mr7274581lab.18.1424954266452; Thu, 26 Feb 2015 04:37:46 -0800 (PST) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id xs4si567583lab.5.2015.02.26.04.37.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Feb 2015 04:37:46 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by lams18 with SMTP id s18so10590139lam.13 for ; Thu, 26 Feb 2015 04:37:46 -0800 (PST) X-Received: by 10.112.42.225 with SMTP id r1mr7194032lbl.72.1424954266159; Thu, 26 Feb 2015 04:37:46 -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.35.133 with SMTP id h5csp3270645lbj; Thu, 26 Feb 2015 04:37:45 -0800 (PST) X-Received: by 10.140.108.66 with SMTP id i60mr16609646qgf.73.1424954264690; Thu, 26 Feb 2015 04:37:44 -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 d35si606891qgf.4.2015.02.26.04.37.43 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 26 Feb 2015 04:37:44 -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 1YQxhF-0006G2-KB; Thu, 26 Feb 2015 12:37:41 +0000 Received: from mail-lb0-f179.google.com ([209.85.217.179]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YQxh9-0006B2-AH for lng-odp@lists.linaro.org; Thu, 26 Feb 2015 12:37:35 +0000 Received: by lbjf15 with SMTP id f15so10361781lbj.13 for ; Thu, 26 Feb 2015 04:37:29 -0800 (PST) X-Received: by 10.152.43.101 with SMTP id v5mr7185091lal.83.1424954249105; Thu, 26 Feb 2015 04:37:29 -0800 (PST) Received: from localhost.localdomain ([80.77.38.170]) by mx.google.com with ESMTPSA id rv1sm167285lbb.25.2015.02.26.04.37.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Feb 2015 04:37:28 -0800 (PST) From: Taras Kondratiuk To: lng-odp@lists.linaro.org, petri.savolainen@nokia.com Date: Thu, 26 Feb 2015 14:37:19 +0200 Message-Id: <1424954239-30354-1-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: X-Topics: patch Subject: [lng-odp] [PATCHv2] validation: pktio: fix odp_errno usage 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.54 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_errno is a private variable. odp_errno() function should be used instead. Also, until we have defined the set of standard ODP errno values, just verify that odp_errno contains 'some' error. Signed-off-by: Taras Kondratiuk --- v2: don't check for an exact errno value test/validation/odp_pktio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/validation/odp_pktio.c b/test/validation/odp_pktio.c index d6a3f1f..8df367d 100644 --- a/test/validation/odp_pktio.c +++ b/test/validation/odp_pktio.c @@ -568,7 +568,7 @@ static void test_odp_pktio_lookup(void) CU_ASSERT(odp_pktio_lookup(iface_name[0]) == pktio); pktio_inval = odp_pktio_open(iface_name[0], default_pkt_pool); - CU_ASSERT(__odp_errno == EEXIST); + CU_ASSERT(odp_errno() != 0); CU_ASSERT(pktio_inval == ODP_PKTIO_INVALID); CU_ASSERT(odp_pktio_close(pktio) == 0);