From patchwork Fri Sep 27 08:16:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 174603 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp3172822ill; Fri, 27 Sep 2019 01:18:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMkvg6Dkmoc8IrMP5Foxj/eGamVZWIbQ/7oYy+awY2uKUFGMkPJowQTcZeDIq2GIV0V6MB X-Received: by 2002:aa7:d654:: with SMTP id v20mr3167487edr.46.1569572319624; Fri, 27 Sep 2019 01:18:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569572319; cv=none; d=google.com; s=arc-20160816; b=A+R+kNqn8+5fzz2lsOJnPHfmxKAPe/lH4K0WfFDsfL3zCmuPt7gfsg1eW/P+Ukg9H4 Ocuaz0bxxithdzZVEPG9PHX/krwuIYPQxFeTFQo8DuvExwJ/KMND79+wIhTNw+7PVK03 wwRY8la5hY0ZdnZU+MnmBgdcDg0MS7IhYjhM7LHrj1VTvYTjajVaulE+idlhcK+4GdO3 zkoQrmK8E46MdcgU6H3IHsx+YCSMWGVB1Xit1GC0fro7cwbOzVjgO4vgaaIsXjGwzKjc Wc83K05vJ07SxC8rkdou78m/goFtlCv3h4pL7x07UoSzU9DD7iCUsBIEv2XI25WC/Lb1 gMGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=SskMsn7BAKNo12t480OQNilKi+46zKG5jth7AezCoBU=; b=vJw9QXrjcybdO1/9QCv7SgE4h5FuHEhDiuweTqA28jqiYc6yrsxw2Y6TQOkIAUCoqx 5SdykOj3DJrqugJCVrxsn20tCuZ+spF89U+6yZe138VvqmeFBxLyHjb2LAQWyQXpaKvI yuKDy5Z8S4UQtgy2Eqg4vZfornu38iWDYg61V+sNoqZAkBngFkbAl6gVnR+Q+9n4TCsV LMzodgARVSMZjdrptR2fsU0m3cGmFJDqTZT9GOtetHiIE4cEyYQdJL/fI7A2Px1pI49p 8uuBijqYgNL4G2e6sJLA+nNMldHnH6QP5YKa8vVKDesnkiYhz/cXd3lp9Tad8qVaua/y JQcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id l16si2285145ejx.141.2019.09.27.01.18.39; Fri, 27 Sep 2019 01:18:39 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EBE582C5E; Fri, 27 Sep 2019 10:18:31 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 02E2D9E4 for ; Fri, 27 Sep 2019 10:18:26 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id D11E9200658; Fri, 27 Sep 2019 10:18:25 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 0D6BD200666; Fri, 27 Sep 2019 10:18:24 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 5D8FA402D5; Fri, 27 Sep 2019 16:18:21 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org, abhinandan.gujjar@intel.com Cc: Hemant Agrawal Date: Fri, 27 Sep 2019 13:46:06 +0530 Message-Id: <20190927081606.22931-3-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190927081606.22931-1-hemant.agrawal@nxp.com> References: <20190927081606.22931-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH] test/event_crypto: add check for adapter failure X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Return err if the adapter creation is failed. Signed-off-by: Hemant Agrawal --- app/test/test_event_crypto_adapter.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) -- 2.17.1 Acked-by: abhinandan.gujjar@intel.com diff --git a/app/test/test_event_crypto_adapter.c b/app/test/test_event_crypto_adapter.c index 83f3214ca..275729ba6 100644 --- a/app/test/test_event_crypto_adapter.c +++ b/app/test/test_event_crypto_adapter.c @@ -814,7 +814,8 @@ test_crypto_adapter_conf_op_forward_mode(void) enum rte_event_crypto_adapter_mode mode; mode = RTE_EVENT_CRYPTO_ADAPTER_OP_FORWARD; - test_crypto_adapter_conf(mode); + TEST_ASSERT_SUCCESS(test_crypto_adapter_conf(mode), + "Failed to config crypto adapter"); return TEST_SUCCESS; } @@ -825,7 +826,9 @@ test_crypto_adapter_conf_op_new_mode(void) enum rte_event_crypto_adapter_mode mode; mode = RTE_EVENT_CRYPTO_ADAPTER_OP_NEW; - test_crypto_adapter_conf(mode); + TEST_ASSERT_SUCCESS(test_crypto_adapter_conf(mode), + "Failed to config crypto adapter"); + return TEST_SUCCESS; }