From patchwork Mon Nov 6 15:00:07 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: 118064 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2863032qgn; Mon, 6 Nov 2017 07:03:37 -0800 (PST) X-Google-Smtp-Source: ABhQp+T4zVHtCnofX69CblFuU6W1dZjeMGrXZrAMf5SQBDmfmvNhXPnhkhUZ0h6y444wkDDfkDep X-Received: by 10.36.105.65 with SMTP id e62mr9525801itc.16.1509980616976; Mon, 06 Nov 2017 07:03:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509980616; cv=none; d=google.com; s=arc-20160816; b=AZtbQNdyfmK2DlPc4qEg2Ft7oeKZFc/uywfWGv2VFHx0wB+2Aebfg2J5kR94bW8ec3 z4aOGYGdVlbkBX5fMXXLmSNn0llKweexJeXlee40yBOSi5oin2JPclZVqP+r0mqqB+zj f501t5p7sI6IBMjaAf5AkOosokjEcKBEEcSdXvLNvdRdqWF3/O0R/QzPOMT6B1bxFXqa wMxnVfkkK7zddNHRINmwCa+08Dq2stwpXgem4AoH1fLqiu0VdkGw6+LMbn/ouC4G56MU TNjhhOEXTs65s+FfLqOwr3tuDHrhJMKME/LE/++bB45YqGZguKi9ltNZsOafXoi+iVeS K6/A== 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=bTwTLP6gc7h89Ic8wstYnUNFDNntbfil+/m1L3S37oE=; b=DD4LtF3Oi4Gd4xd7wYFcVUeXokNSl2BwV25JTK55d6YJPKKluStmosZA6Vy+/gnSw5 n280TpXkRRRboe5C7q3jzh0MBtBX8MTp/XBcRKahXEh7HGtIQDpwfVoWratkXiagov/U eBcmtSjrgK4bTHGk3WVNNtJY6necdKRaBZbYqQUg0lbTq4XDyy0cISAG9+IGZSSyxfUs zj+RqrYqWk+wexz6mtcymgTOm7IyEnmsClYw1hWcG9I1Ny9Fqa6ui9zxEjIqF6V1xIer dopMdALjopJkMkDLDh+tAI1QwRU/GSHSfUUf9yprv6JrnPmmU1hEuHHCQdXmob9nwiD+ iTsA== 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 z195si8451145itz.87.2017.11.06.07.03.36; Mon, 06 Nov 2017 07:03:36 -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 6CE6360C0C; Mon, 6 Nov 2017 15:03:36 +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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 53B2C60C18; Mon, 6 Nov 2017 15:01:13 +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 AEAA660C2F; Mon, 6 Nov 2017 15:01:00 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id 2967760BDC for ; Mon, 6 Nov 2017 15:00:19 +0000 (UTC) Received: from mxback7g.mail.yandex.net (mxback7g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:168]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 771225D87CAD for ; Mon, 6 Nov 2017 18:00:17 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback7g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id HFkaZZEjPW-0BLC0rh8; Mon, 06 Nov 2017 18:00:11 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id T0MgOkT6Js-0Arqe7pc; Mon, 06 Nov 2017 18:00:10 +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: Mon, 6 Nov 2017 18:00:07 +0300 Message-Id: <1509980407-6367-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509980407-6367-1-git-send-email-odpbot@yandex.ru> References: <1509980407-6367-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 278 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 278 (muvarov:next2) ** https://github.com/Linaro/odp/pull/278 ** Patch: https://github.com/Linaro/odp/pull/278.patch ** Base sha: f318c88f26b15140dda243e6a1d27e3c8f9d275b ** Merge commit sha: c83975d85777ff167e18764bf9fd8f310a65e206 **/ 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;