From patchwork Wed Mar 11 08:36:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 45622 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 21BD0214C6 for ; Wed, 11 Mar 2015 08:36:50 +0000 (UTC) Received: by wibbs8 with SMTP id bs8sf5906093wib.3 for ; Wed, 11 Mar 2015 01:36:49 -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=OLQhGdAHDTPsTJ+sx7a397Ty+rESF/3esgH8CPRNm8I=; b=mWzFjcAp5ineR4G/y+HDCLMOCuRETL20ncmmV+pNX0nmghjsYG2OY5bPHQ1LmjsMUd 1heDuZycCgNUIiyFCxRfDX1VJ1/VyzZ+G9KOEW+LhJUkhzxGvY6Ulpl/4F6QI0Qgl1OR zY2rn3tdF8xRE7c8pX/RWXB3n0EpMB9Jcf6L48bdMrPNc8wHbw4GskTw1+F4h83QX/vC +N/m3XwsvhQx8cCFvVK/aRLmsQ6Pg8/NVWBFnpHpiKXJni/2nIhOdZwWvs8Nb7dFQFLx 0yzgv/3HDSmhtZrPc47R1bjuUDWgHSwa6cqZkf5kB47ELcNr5ThwDqIFAg0tOMzUcZfw XjeA== X-Gm-Message-State: ALoCoQmO4RucqJaT0zZUeKvMXrJNG+JZ7u7k6VvQVYLjM4KJaKH17pow9IqHc4Z33tiuf2752c7V X-Received: by 10.180.101.101 with SMTP id ff5mr8448204wib.5.1426063009453; Wed, 11 Mar 2015 01:36:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.137 with SMTP id z9ls115448laa.15.gmail; Wed, 11 Mar 2015 01:36:49 -0700 (PDT) X-Received: by 10.112.181.231 with SMTP id dz7mr32639854lbc.47.1426063009200; Wed, 11 Mar 2015 01:36:49 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id ln10si445434lac.159.2015.03.11.01.36.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Mar 2015 01:36:49 -0700 (PDT) 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 s18so7139910lam.9 for ; Wed, 11 Mar 2015 01:36:49 -0700 (PDT) X-Received: by 10.112.64.193 with SMTP id q1mr33874175lbs.88.1426063009079; Wed, 11 Mar 2015 01:36:49 -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 h5csp2629761lbj; Wed, 11 Mar 2015 01:36:48 -0700 (PDT) X-Received: by 10.55.17.76 with SMTP id b73mr66546146qkh.71.1426063007947; Wed, 11 Mar 2015 01:36:47 -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 il9si2886407qcb.4.2015.03.11.01.36.46 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 11 Mar 2015 01:36:47 -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 1YVc8B-0004M3-9a; Wed, 11 Mar 2015 08:36:43 +0000 Received: from mail-la0-f51.google.com ([209.85.215.51]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YVc85-0004Lt-OZ for lng-odp@lists.linaro.org; Wed, 11 Mar 2015 08:36:37 +0000 Received: by labgd6 with SMTP id gd6so7130654lab.6 for ; Wed, 11 Mar 2015 01:36:32 -0700 (PDT) X-Received: by 10.152.10.66 with SMTP id g2mr33737796lab.44.1426062991816; Wed, 11 Mar 2015 01:36:31 -0700 (PDT) Received: from localhost.localdomain (ppp91-76-169-66.pppoe.mtu-net.ru. [91.76.169.66]) by mx.google.com with ESMTPSA id m4sm572827lae.47.2015.03.11.01.36.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Mar 2015 01:36:30 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Wed, 11 Mar 2015 11:36:25 +0300 Message-Id: <1426062985-13816-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] validation: pktio check return code for pool_destroy 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: maxim.uvarov@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 Fix CID 88056 to check return code of pool_destroy. Signed-off-by: Maxim Uvarov Reviewed-by: Stuart Haslam --- 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 6359452..e022c33 100644 --- a/test/validation/odp_pktio.c +++ b/test/validation/odp_pktio.c @@ -259,7 +259,7 @@ static odp_pktio_t create_pktio(const char *iface) pool = odp_pool_lookup(pool_name); if (pool != ODP_POOL_INVALID) - odp_pool_destroy(pool); + CU_ASSERT(odp_pool_destroy(pool) == 0); pool = odp_pool_create(pool_name, ODP_SHM_NULL, ¶ms); CU_ASSERT(pool != ODP_POOL_INVALID);