From patchwork Wed Feb 25 10:30:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 45033 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f200.google.com (mail-we0-f200.google.com [74.125.82.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9ABCE20502 for ; Wed, 25 Feb 2015 10:31:17 +0000 (UTC) Received: by wesk11 with SMTP id k11sf2140140wes.3 for ; Wed, 25 Feb 2015 02:31:16 -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=N8GS+c2fVMASekCuYAeWt4UNdJvroa61mT43Kv5y3Kc=; b=V4BlsRDxSuUtaOsJWbdTxqtVOB2byvid2limP2SyZvNkvoVj3RM11qvM9kTqE1tWCn mmMAuMsFeIc5OpYw+PBpHa7lDBsOcOuDnvwmSzNI2ZRwwEhPlV095/TnOeNBvefmUXY3 NcFcGjF3JTTa9rWFeAP4MLGagBPbmc5J08SGV7MtmxxbuN6fhJJTK5r6bEcHuepKeot2 2JhpEb5HeYxZkqmFWgcOv54ACxONKW0xFL0Rcsu1EbhYZ2GVhTLiBp1dXiawbYR9l4Ay lgZXLexZpzrMKD4Q6XiPMH29dFKUS3SB5s0QD1p9LKvpvzAioS4O74H6MsMHD9h7w97Y 1FLQ== X-Gm-Message-State: ALoCoQnKwf+r6wuN062q3D+a2A5/jSiKT5AhfB42oyhZd7rYbyhfvYlrh4kkcGZmD0s4/0SwjN4k X-Received: by 10.152.6.232 with SMTP id e8mr363342laa.2.1424860276879; Wed, 25 Feb 2015 02:31:16 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.227 with SMTP id b3ls664629lak.58.gmail; Wed, 25 Feb 2015 02:31:16 -0800 (PST) X-Received: by 10.152.37.69 with SMTP id w5mr2138523laj.15.1424860276738; Wed, 25 Feb 2015 02:31:16 -0800 (PST) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id 5si25276336lal.85.2015.02.25.02.31.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Feb 2015 02:31:16 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lbiz11 with SMTP id z11so2869058lbi.5 for ; Wed, 25 Feb 2015 02:31:16 -0800 (PST) X-Received: by 10.112.64.193 with SMTP id q1mr2189273lbs.88.1424860276617; Wed, 25 Feb 2015 02:31:16 -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 h5csp2525472lbj; Wed, 25 Feb 2015 02:31:16 -0800 (PST) X-Received: by 10.229.3.8 with SMTP id 8mr5729203qcl.12.1424860275416; Wed, 25 Feb 2015 02:31:15 -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 u13si42015042qag.86.2015.02.25.02.31.13 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 25 Feb 2015 02:31:15 -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 1YQZFH-0000zH-2n; Wed, 25 Feb 2015 10:31:11 +0000 Received: from mail-lb0-f180.google.com ([209.85.217.180]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YQZFB-0000xE-6m for lng-odp@lists.linaro.org; Wed, 25 Feb 2015 10:31:05 +0000 Received: by lbvp9 with SMTP id p9so2906626lbv.0 for ; Wed, 25 Feb 2015 02:30:59 -0800 (PST) X-Received: by 10.152.205.41 with SMTP id ld9mr1364418lac.98.1424860258819; Wed, 25 Feb 2015 02:30:58 -0800 (PST) Received: from localhost.localdomain ([80.77.38.170]) by mx.google.com with ESMTPSA id lf3sm8400777lbc.2.2015.02.25.02.30.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Feb 2015 02:30:58 -0800 (PST) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Wed, 25 Feb 2015 12:30:52 +0200 Message-Id: <1424860252-17970-1-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] validation: queue: destroy created ODP resources 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.217.169 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 Signed-off-by: Taras Kondratiuk --- test/validation/odp_queue.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/validation/odp_queue.c b/test/validation/odp_queue.c index 91a32dc..5d47399 100644 --- a/test/validation/odp_queue.c +++ b/test/validation/odp_queue.c @@ -12,10 +12,10 @@ #define CONFIG_MAX_ITERATION (100) static int queue_contest = 0xff; +static odp_pool_t pool; static int init_queue_suite(void) { - odp_pool_t pool; odp_pool_param_t params; params.buf.size = 0; @@ -32,6 +32,11 @@ static int init_queue_suite(void) return 0; } +static int init_queue_finalize(void) +{ + return odp_pool_destroy(pool); +} + static void test_odp_queue_sunnyday(void) { odp_queue_t queue_creat_id, queue_id; @@ -103,6 +108,7 @@ static void test_odp_queue_sunnyday(void) odp_buffer_free(enbuf); } + CU_ASSERT(odp_queue_destroy(queue_id) == 0); return; } @@ -112,6 +118,7 @@ CU_TestInfo test_odp_queue[] = { }; CU_SuiteInfo odp_testsuites[] = { - {"Queue", init_queue_suite, NULL, NULL, NULL, test_odp_queue}, + {"Queue", init_queue_suite, init_queue_finalize, + NULL, NULL, test_odp_queue}, CU_SUITE_INFO_NULL, };