diff mbox series

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

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

Commit Message

Bill Fischofer June 11, 2017, 11:59 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;