From patchwork Wed Aug 10 14:23:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 73645 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp428558qga; Wed, 10 Aug 2016 07:24:04 -0700 (PDT) X-Received: by 10.55.154.131 with SMTP id c125mr4912665qke.33.1470839044127; Wed, 10 Aug 2016 07:24:04 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a73si24368043qkb.55.2016.08.10.07.24.03; Wed, 10 Aug 2016 07:24:04 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 7519F60DBC; Wed, 10 Aug 2016 14:24:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 9C9EC60A3E; Wed, 10 Aug 2016 14:24:00 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 1E7DF60A45; Wed, 10 Aug 2016 14:23:59 +0000 (UTC) Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) by lists.linaro.org (Postfix) with ESMTPS id 2308660A2E for ; Wed, 10 Aug 2016 14:23:58 +0000 (UTC) Received: by mail-oi0-f48.google.com with SMTP id l203so61225201oib.1 for ; Wed, 10 Aug 2016 07:23:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=sZNqruERMcLs/NM3wSkXESoGnLudYoczsQY0njUte+Y=; b=GBtEbmZcHin9t6zKL9RZWERqsWmTtB/bbxgQ2r1t5u73LHbqsQJYGD+p/Ndf4NCC6m UeIbhERaMow1TTssjWtkTfYYXSzgBYXdJFG9u5LVsHKILU++9A5NqQCgXRz9XsD7YiaY 6TUtMPgzPdJ0iYC3Egh6BfIDu9PZ+tUH/UCTIFXYhj7ks1FVBCTuZ+PsS4GWv4LkO1bc d8hcmlbqwh5W4icZRHLMkYYGjA+e1G2eAS+JQ3Pr0vcSD+HnUSK7dK+MZer2mHWUxBxT ni/LU0I0sFi/5ytOpFLN4qN14k6yQf/1Bw3+jNo2UI6uScpycGfkwxtWBqsIO9DQE4bM qANA== X-Gm-Message-State: AEkooutv97miEJ/Bq33UpiI441JTT5XoJtRYwsPvJpNiChfE8i8D+XW4RIYx1V5BJV55PugX6Wc= X-Received: by 10.157.17.22 with SMTP id g22mr594738ote.188.1470839037613; Wed, 10 Aug 2016 07:23:57 -0700 (PDT) Received: from localhost.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id t139sm20103009oie.6.2016.08.10.07.23.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Aug 2016 07:23:56 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 10 Aug 2016 09:23:54 -0500 Message-Id: <1470839034-19332-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.7.4 X-Topics: patch Subject: [lng-odp] [PATCH] test: performance: capture termination failures in final return code X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Accumulate return codes from resource cleanup so callers can be aware of termination failures. Signed-off-by: Bill Fischofer --- test/common_plat/performance/odp_scheduling.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.7.4 diff --git a/test/common_plat/performance/odp_scheduling.c b/test/common_plat/performance/odp_scheduling.c index 1d1bf01..1de79f7 100644 --- a/test/common_plat/performance/odp_scheduling.c +++ b/test/common_plat/performance/odp_scheduling.c @@ -965,15 +965,15 @@ int main(int argc, char *argv[]) for (j = 0; j < QUEUES_PER_PRIO; j++) { queue = globals->queue[i][j]; - odp_queue_destroy(queue); + ret += odp_queue_destroy(queue); } } - odp_shm_free(shm); - odp_queue_destroy(plain_queue); - odp_pool_destroy(pool); - odp_term_local(); - odp_term_global(instance); + ret += odp_shm_free(shm); + ret += odp_queue_destroy(plain_queue); + ret += odp_pool_destroy(pool); + ret += odp_term_local(); + ret += odp_term_global(instance); return ret; }