diff mbox series

[v3,4/4] validation: init: use odp_init_param_init() in init tests

Message ID 1509998406-12706-5-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v3,1/4] api: feature: add odp feature bits | expand

Commit Message

Github ODP bot Nov. 6, 2017, 8 p.m. UTC
From: Bill Fischofer <bill.fischofer@linaro.org>


Provide test coverage for odp_init_param_init() API.

Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>

Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org>

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

---
/** 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 mbox series

Patch

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;