From patchwork Mon Nov 6 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: 118093 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3149629qgn; Mon, 6 Nov 2017 12:01:23 -0800 (PST) X-Google-Smtp-Source: ABhQp+RqmLIwc46Zxz4U7Rl+K241SBlPho5+8FzwKPjD7LfbaE1knR1MD9sMzDstkIwu86SXRfke X-Received: by 10.107.150.20 with SMTP id y20mr21580680iod.212.1509998483076; Mon, 06 Nov 2017 12:01:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509998483; cv=none; d=google.com; s=arc-20160816; b=c1vsnMolfgeGzMsj94MLU7rHbd0sRZ1ca+ROInebfU1Y7nhjYrLSeU7oaLCoqUEf5V vcETo9Bx+Jzj60Pr3lU/n0+JKpEwCdMLs43OCdjNx/IH3N0f7s4ud/SFQwIHDAAp1Xjt pB3f1X9WZ2MizZN/ygOGE1Slnhn2k0u4IVtzDgHtzp4F81KGh/CgrNuaZIQpf718TzHW B/p3ZnfxhQshhP7VO3er41S6DiSZjz3IdExe0FAKvzHSbjBP0NSSV77RzIWVFQotWAXJ Mgi75a+LunmYpio+eu+XPHb0bvo7Jv0Jd1TNp6U+viDlq6iXgD6pRxBtTKi1NLw8VIB8 dKhA== 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=4nXBBKkf++f5LTruaXyGsrfeNeXd1xW3rGdZAQdL0uc=; b=VkTJvUU72ledwRKOZaTpeatT7/Sbq4NIz685BDX4pRgn1cRm4LCit8cjfAng3JlLoH WAxlF40OewGIl5poGje4uzbwb8ECQHKavCL1eXrRqOf7TGQTb6p4ixH6Rw5MV3TDKPqv /SLMsKsn62gQ/ZWFfDPVFBBdihe+gOUJfnbkuva8XizMZ5Tog8AyHLhI/NKQhTtyBfr+ H+BJOK2gp7Ree0jjUX2TsuahFr0gCBROSjsyOZWF5n5z4hcm7pyqJygg0Rja09VgRAGd 7faOYdy17jIRq0rf4TxPetQbX7YuX2YN5AQrreVJHNQHF7Iyinu9FLGmdriFA6CYnnGl 5FEQ== 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 i13si8361452ita.48.2017.11.06.12.01.22; Mon, 06 Nov 2017 12:01:23 -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 A3FE760C12; Mon, 6 Nov 2017 20:01:22 +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 CA43160C16; Mon, 6 Nov 2017 20:00:21 +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 0A15E606B3; Mon, 6 Nov 2017 20:00:14 +0000 (UTC) Received: from forward101p.mail.yandex.net (forward101p.mail.yandex.net [77.88.28.101]) by lists.linaro.org (Postfix) with ESMTPS id 3F79360718 for ; Mon, 6 Nov 2017 20:00:11 +0000 (UTC) Received: from mxback14j.mail.yandex.net (mxback14j.mail.yandex.net [IPv6:2a02:6b8:0:1619::90]) by forward101p.mail.yandex.net (Yandex) with ESMTP id D52AB6A86F01 for ; Mon, 6 Nov 2017 23:00:09 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback14j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id xcvXVnTplE-09bi6FFR; Mon, 06 Nov 2017 23:00:09 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kjmdnsAqIW-09F0I7EW; Mon, 06 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: Mon, 6 Nov 2017 23:00:06 +0300 Message-Id: <1509998406-12706-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509998406-12706-1-git-send-email-odpbot@yandex.ru> References: <1509998406-12706-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 278 Subject: [lng-odp] [PATCH v3 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: 7b1bdbd556cad7a42550ae18152f2f9281b6930e **/ 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;