diff mbox series

[API-NEXT,PATCHv7,4/5] validation: init: use odp_init_param_init() in init tests

Message ID 20170613125515.24874-4-bill.fischofer@linaro.org
State New
Headers show
Series [API-NEXT,PATCHv7,1/5] api: feature: add odp feature bits | expand

Commit Message

Bill Fischofer June 13, 2017, 12:55 p.m. UTC
Provide test coverage for odp_init_param_init() API.

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

---
 test/common_plat/validation/api/init/init.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

-- 
2.11.0
diff mbox series

Patch

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;