From patchwork Wed Sep 16 09:56:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 53725 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by patches.linaro.org (Postfix) with ESMTPS id DBF4522DB2 for ; Wed, 16 Sep 2015 09:57:32 +0000 (UTC) Received: by wicuu12 with SMTP id uu12sf19190063wic.2 for ; Wed, 16 Sep 2015 02:57:32 -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: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=4ywfqJNxrfO/R8APhwOCwwH1f0yp5YMk/mk+kGnHJcg=; b=kQErv60kcLI9cvDUrlfDAnAXqzyjR/BqXjk67brxg0KBuZcc0nhiAqs8dSqe7c2H5G 8THB+ae5VqcX5gysjvw/vWi4IJ6OShLLUy/g5iffdn6T6YFQpq2wbGVXgBLgqZptc/eM DvqE+X4oBklZl3wHv7+OYV9hUbd3Ne1Jzfvt4kNI4Y3iXZoDUdopXvMml2vYDwoRc17h nxA47ADRXx0yFh6eHMfU3TZk5G1cJz1Em14deDzb3z8JcjZi+CsxAcq5kKG0u5MebLIy 8Wc4Vgn3vbx2TCs7Cbz755LK8IV/As3oWNZh2jIu602SszOt5FFgd3U66Y4WQpllJwgQ vzvQ== X-Gm-Message-State: ALoCoQnQgo8gNIeZ0IR8rYd7treYlEmcZAgBysrPftdphFdkXIyMzZXEEsVEPOEpiYU2Pq0uu/Q1 X-Received: by 10.112.26.212 with SMTP id n20mr5289564lbg.2.1442397452222; Wed, 16 Sep 2015 02:57:32 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.198.135 with SMTP id jc7ls945897lac.54.gmail; Wed, 16 Sep 2015 02:57:32 -0700 (PDT) X-Received: by 10.112.146.104 with SMTP id tb8mr26159308lbb.35.1442397452069; Wed, 16 Sep 2015 02:57:32 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id er18si17656628lbc.143.2015.09.16.02.57.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Sep 2015 02:57:32 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbpo4 with SMTP id o4so100577188lbp.2 for ; Wed, 16 Sep 2015 02:57:32 -0700 (PDT) X-Received: by 10.152.18.130 with SMTP id w2mr18520177lad.88.1442397451878; Wed, 16 Sep 2015 02:57:31 -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.59.35 with SMTP id w3csp2334856lbq; Wed, 16 Sep 2015 02:57:30 -0700 (PDT) X-Received: by 10.140.233.7 with SMTP id e7mr41829411qhc.79.1442397450841; Wed, 16 Sep 2015 02:57:30 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a12si16518077qkj.82.2015.09.16.02.57.29; Wed, 16 Sep 2015 02:57:30 -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; Received: by lists.linaro.org (Postfix, from userid 109) id BFBC861A44; Wed, 16 Sep 2015 09:57:29 +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_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED 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 5CFB061BB4; Wed, 16 Sep 2015 09:56:56 +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 7086361A29; Wed, 16 Sep 2015 09:56:49 +0000 (UTC) Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by lists.linaro.org (Postfix) with ESMTPS id 991B2619A7 for ; Wed, 16 Sep 2015 09:56:48 +0000 (UTC) Received: by wicfx3 with SMTP id fx3so62563552wic.0 for ; Wed, 16 Sep 2015 02:56:47 -0700 (PDT) X-Received: by 10.194.21.163 with SMTP id w3mr16237397wje.70.1442397407828; Wed, 16 Sep 2015 02:56:47 -0700 (PDT) Received: from e106441.emea.arm.com ([2001:41d0:a:3cb4::abcd]) by smtp.gmail.com with ESMTPSA id az6sm3608326wib.12.2015.09.16.02.56.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Sep 2015 02:56:47 -0700 (PDT) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Wed, 16 Sep 2015 10:56:40 +0100 Message-Id: <1442397400-477-1-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 X-Topics: patch Subject: [lng-odp] [PATCH] validation: pktio: don't call CU_FAIL() from init X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: stuart.haslam@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.175 as permitted sender) smtp.mailfrom=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 The CU_* macros can't be used from initialisation functions. Signed-off-by: Stuart Haslam --- test/validation/pktio/pktio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/validation/pktio/pktio.c b/test/validation/pktio/pktio.c index 5c0799b..1c034bd 100644 --- a/test/validation/pktio/pktio.c +++ b/test/validation/pktio/pktio.c @@ -790,7 +790,8 @@ static int create_pool(const char *iface, int num) pool[num] = odp_pool_create(pool_name, ¶ms); if (ODP_POOL_INVALID == pool[num]) { - CU_FAIL("unable to create pool"); + fprintf(stderr, "%s: unable to create pool: %d\n", + __func__, odp_errno()); return -1; }