From patchwork Sun Nov 5 20:00:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 117994 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2040271qgn; Sun, 5 Nov 2017 12:02:01 -0800 (PST) X-Google-Smtp-Source: ABhQp+R4uNTCXFqcV1HWzrJ10kiEDWC3P203llihrM4Sek8SUYSJHTSnLpCUUy2CfiHUtsSjtvQz X-Received: by 10.200.23.36 with SMTP id w33mr20181003qtj.50.1509912121741; Sun, 05 Nov 2017 12:02:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509912121; cv=none; d=google.com; s=arc-20160816; b=J2ZZNw2G6WZmIi15O8bFnZJ6eumj6UzGJSLMbKCvW5tZqddwCW22b1fh6FLDXxK4RM G9+OF3jDaX1wzeyxOjXYsaxC1K7lAZqjq/OrtuEsgr7wfCIYBYCwumhk/z/bpyo9mrhd O0NaF3eJWbB0qEj/79Tbpd83b3d/BdJu7IlrPjL6sQ+4BosAuvs7203xQ6gItnPkgDuF IuZMFQYm5dgcweRCDb2+0EBzz5KgRq+0/8MdjsRMwik4Zh+/IGPyljjM7kX/frwtHVLe Ki1EC+AYso7oR/PXi4dW1qL4g+9oilNNXVsD6y++NQiBerQ2RK+dxA1Mt8vSQZvwaQkd mFrQ== 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:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=tfSG4iN390GZKRhTv3kzN5+AaTsMBfv/K3R/rMGZ0Ls=; b=bRhxqbYMkaoiXg9bbO8Dyasua0knUBX5j+Gyolbv46XFFGVnUZ+HmIJdcPrwRMMFj+ zibtIOkb3wZSgbOz9d3Xop0DK+dpNbqwYyvb+MmrUrahhkpdJJADypAEKwpys6K5Bz74 TajYf+Vp0H0F+YrDGoBXe95fWwEFOD+NXG3dkZITDw6uolLOd/CS8YQW1SzgtKZNSHj/ wN+XEXSwdaX/NB+1u+zr3kTv6WEZmasAGNC0hx1yxk1tDRAOrAoKiQppXAAWBy9Z5+/5 9a02q6S5EkKDnEJpnP8rJYP/fEX3x+c95cVAtcgM8q501A/2CacuuztRGkm8qaFiiLGx v+2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id k123si3766459qkc.302.2017.11.05.12.02.01; Sun, 05 Nov 2017 12:02:01 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 6D28B607FE; Sun, 5 Nov 2017 20:02:01 +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=-5.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, 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 B67B460B59; Sun, 5 Nov 2017 20:00:27 +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 F139C6038D; Sun, 5 Nov 2017 20:00:14 +0000 (UTC) Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [77.88.28.107]) by lists.linaro.org (Postfix) with ESMTPS id 56C0A604C8 for ; Sun, 5 Nov 2017 20:00:12 +0000 (UTC) Received: from mxback6j.mail.yandex.net (mxback6j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10f]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 71809182712 for ; Sun, 5 Nov 2017 23:00:10 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback6j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id SuLOzMFS8g-0AMKUcTG; Sun, 05 Nov 2017 23:00:10 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id AsckRko5Lx-09Fe44Dv; Sun, 05 Nov 2017 23:00:09 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Sun, 5 Nov 2017 23:00:06 +0300 Message-Id: <1509912006-21983-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509912006-21983-1-git-send-email-odpbot@yandex.ru> References: <1509912006-21983-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 276 Subject: [lng-odp] [PATCH v1 4/4] validation: init: use odp_init_param_init() in init tests 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" From: Bill Fischofer Provide test coverage for odp_init_param_init() API. Signed-off-by: Bill Fischofer Reviewed-by: Petri Savolainen Signed-off-by: Maxim Uvarov --- /** Email created from pull request 276 (muvarov:next) ** https://github.com/Linaro/odp/pull/276 ** Patch: https://github.com/Linaro/odp/pull/276.patch ** Base sha: f318c88f26b15140dda243e6a1d27e3c8f9d275b ** Merge commit sha: a1aa17bb2964bcc180fc9b3b1568b36f8c235049 **/ test/validation/api/init/init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/validation/api/init/init.c b/test/validation/api/init/init.c index d44ff2347..3dc40ea5f 100644 --- a/test/validation/api/init/init.c +++ b/test/validation/api/init/init.c @@ -26,10 +26,10 @@ static int odp_init_log(odp_log_level_t level, const char *fmt, ...); void init_test_odp_init_global_replace_abort(void) { int status; - struct odp_init_t init_data; + odp_init_t init_data; odp_instance_t instance; - memset(&init_data, 0, sizeof(init_data)); + odp_init_param_init(&init_data); init_data.abort_fn = &odp_init_abort; status = odp_init_global(&instance, &init_data, NULL); @@ -79,10 +79,10 @@ int init_main_abort(int argc, char *argv[]) void init_test_odp_init_global_replace_log(void) { int status; - struct odp_init_t init_data; + odp_init_t init_data; odp_instance_t instance; - memset(&init_data, 0, sizeof(init_data)); + odp_init_param_init(&init_data); init_data.log_fn = &odp_init_log; replacement_logging_used = 0;