From patchwork Mon Jun 12 20:54:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 103678 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp105851qgd; Mon, 12 Jun 2017 13:56:23 -0700 (PDT) X-Received: by 10.200.46.50 with SMTP id r47mr53324919qta.209.1497300983675; Mon, 12 Jun 2017 13:56:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497300983; cv=none; d=google.com; s=arc-20160816; b=COCmYfXulHOV9vGQFXYtwedQAUF1TWjFF5Ok50k265zFvq7gSvvfE/Qa5uwQnTx9Nq Q/zWu2vRbg2VD88HVfRxgxQLk95R7F6/S4ZhJVfutI8h5lHW2cfYQfZOSRtajrQo/y52 Caqvd2a/HGoOmZ23ZO+C2frWkcCNfBngy3s0HB8spSdIps54PaR/hWqJBgTS9aP23Mcz eUYepGTzlGz5qwEkRoyydrXajq3J200ln/7RJ9DRvXplGaI4CZihQngezSYZFOyf5b9/ lTP4YKLTKxXuKGiyf0Hs+iB5E4RK+avPjt8CtT3Ld06rDpAdUO3NFQEc+ZkVwIRrMIDy /Dig== 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:to:from:delivered-to:arc-authentication-results; bh=LmNxT3Pg+LDeOg8Q5pmdwIYAflUaZ1hTS0cVH39Ttr4=; b=CfbEegLpbb6iWmq+iAhu1HgsOpDv9UAAmy4Bv1t6AAhIAyKmdvYPEkzPcQTVKP3QFk mLEoWe01+1+nP+gdCtissaX3HMFEB1f8YG735ZMjJUZOhrNC9PKqTFWLH99CTYMK2AiL wTMy2vRtugrEEdOYjhMhlRl+EiW+hfZQt4FIkFKbGhH572EnfXmoXSTmLgS45VgAPP17 l5UaY94BhH/nRmn469dr18+3gsLITbzZ2cUPtYxeVodLf2RFx0SYsld3tbBSx23Ytrbn 6CRq1uu4ElGwMd2+u0T6/As+F2QpbeMslcyRuQA0AQy9Q1STlNH+QHDvIEG512sHGuuc MTkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id i29si9914161qtf.132.2017.06.12.13.56.23; Mon, 12 Jun 2017 13:56:23 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 5A59460589; Mon, 12 Jun 2017 20:56:23 +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.4 required=5.0 tests=BAYES_00, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, 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 05BEA60BEE; Mon, 12 Jun 2017 20:54:50 +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 6C489609B0; Mon, 12 Jun 2017 20:54:43 +0000 (UTC) Received: from mail-oi0-f52.google.com (mail-oi0-f52.google.com [209.85.218.52]) by lists.linaro.org (Postfix) with ESMTPS id 12AA960956 for ; Mon, 12 Jun 2017 20:54:42 +0000 (UTC) Received: by mail-oi0-f52.google.com with SMTP id b6so7839178oia.1 for ; Mon, 12 Jun 2017 13:54:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LmNxT3Pg+LDeOg8Q5pmdwIYAflUaZ1hTS0cVH39Ttr4=; b=e0tnVHw2hCVrIUZns94D0YS06WMAnIzB81z3uR2XClXjnAaz66rPIQDKYYlqhUB5s9 Fv3rlDvRMgcYx8FUfZF7FuJXk4fToi8PRzyBka0GXm/WHdkKOtCpDznM9TC+kknrORPm I7CgSJ+8UeN0lxkfeszv13U7AiHWxa1iOF2c3rIBp/9/fjbE6zGFBRdJLMd7mewNOrSY 0Przqjy0xDsDmDRwz9g+3I+19v1OULzh8wxG6ggq4s0LrwETfORoFk/2izu9ktCyB4Mr gUOQaXL7SghPUOlAwYFzmorgajGzNNBD7Ayg1rj5v/h9YlbGm5t+22YSFcL6/orBvhSK j/eA== X-Gm-Message-State: AODbwcB6/lNBB5m+2q+raUs8pMikd3ECK24bRECbJbMuVCG9DkXH7ONB jJfJ7M3Sl1p3PbgNreQ0PKuL X-Received: by 10.202.214.3 with SMTP id n3mr22773191oig.155.1497300881269; Mon, 12 Jun 2017 13:54:41 -0700 (PDT) Received: from localhost.localdomain (cpe-70-121-83-241.austin.res.rr.com. [70.121.83.241]) by smtp.gmail.com with ESMTPSA id y34sm5427056oty.53.2017.06.12.13.54.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Jun 2017 13:54:40 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Mon, 12 Jun 2017 15:54:33 -0500 Message-Id: <20170612205434.21993-4-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170612205434.21993-1-bill.fischofer@linaro.org> References: <20170612205434.21993-1-bill.fischofer@linaro.org> Subject: [lng-odp] [API-NEXT PATCHv5 4/5] 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" Provide test coverage for odp_init_param_init() API. Signed-off-by: Bill Fischofer --- test/common_plat/validation/api/init/init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.11.0 diff --git a/test/common_plat/validation/api/init/init.c b/test/common_plat/validation/api/init/init.c index 61055fad..6f9556d7 100644 --- a/test/common_plat/validation/api/init/init.c +++ b/test/common_plat/validation/api/init/init.c @@ -24,10 +24,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); @@ -77,10 +77,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;