From patchwork Mon Nov 6 11: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: 118017 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2630670qgn; Mon, 6 Nov 2017 03:02:44 -0800 (PST) X-Google-Smtp-Source: ABhQp+SCPzI6OIEHFOdu3+ira6X8o1isSyt0nEB9x8vbz51Sys373r8XLruBfGVmMbRZQkGo4M6s X-Received: by 10.55.204.77 with SMTP id r74mr22125142qki.25.1509966164287; Mon, 06 Nov 2017 03:02:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509966164; cv=none; d=google.com; s=arc-20160816; b=mi5wnDqGRv398yftxdfySwjbaxs1l9ZliXLWjqixP22YegEAjr7VqjaMPsGik3IiMo G5AdvbWPq/FnT05wEJJmsz5hQsVZzx8IZNVVzwiox+rVWFSEjueLIyuPKMKnf0HdLJqb oOfJrkqjbiosAbfeJLEGhthTar9UmO0x62R6EGpvK2JexSP5xuSDqp9vQu9dXQrBvfa+ U0j+dhlPK6yzDpYrIeIw7cN3ozPwL6S/bO/OhgBBhXu7jnA/0bSUWi8JUcFQ7yeuhG3T T2NST0r+LgLD/J5WVFijtai2SrmXivGOPBDCuZzfJNl5IUXe+WDNkMofiZF3l+UzMdnD SuZg== 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=Y6Q2JkyK0qvY7rGCE8Z6vcn/MlYJt8f1Fu9PEV8EjQI=; b=wnJoTQiWB0mhIbZ3PoBEzdQ0ut2ArEq44knzbCLpBoikWcSqMzY8j/zPo6VpmIwF63 PFOIqV8S4uzpYL0XZmhMvjwBaH+aPv/myCxQd6KIChbhMWemhY3nVU2BtITuerluifGN 77NgQ/TfS4lh0r5FwKDu558uLZDAdUOdfFxtT6yDl744sOvQLWQvXP+lAgSw41BvpNI9 6gP+2Zs4AtGmu9NiRpGzPwh1C6jB1iOtZ1V6kIGqqYky4umD6ncWBrTE4QGY25jNH+LD ZXepJnKg+FqZOEVadVmpSPrYi2SX1n3Q8UKhULaZIl3zejsyYy+JiA/ml2WtdPNR7dJU Iyew== 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 z132si5495900qka.0.2017.11.06.03.02.43; Mon, 06 Nov 2017 03:02:44 -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 B64D760C0F; Mon, 6 Nov 2017 11:02:43 +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 EDF7060B65; Mon, 6 Nov 2017 11:00:34 +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 2933660609; Mon, 6 Nov 2017 11:00:20 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id 9592660455 for ; Mon, 6 Nov 2017 11:00:13 +0000 (UTC) Received: from mxback9o.mail.yandex.net (mxback9o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::23]) by forward100j.mail.yandex.net (Yandex) with ESMTP id CD1935D81F61 for ; Mon, 6 Nov 2017 14:00:11 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback9o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id WmLKQx9teZ-0BTSnBwJ; Mon, 06 Nov 2017 14:00:11 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id iHi0qYvJl4-0B0euJ65; Mon, 06 Nov 2017 14:00:11 +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 14:00:06 +0300 Message-Id: <1509966006-16692-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509966006-16692-1-git-send-email-odpbot@yandex.ru> References: <1509966006-16692-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 276 Subject: [lng-odp] [PATCH v2 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: 40eee55053ce892b452dc5e7033bbbdb030792f4 **/ 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;