From a025f26bb6c718227a2b51b8a99809445026c73b Mon Sep 17 00:00:00 2001 From: Amit Purwar Date: Wed, 26 Aug 2020 21:37:38 +0530 Subject: [PATCH] Mesh gtest: Fix the load network testcase Change-Id: I3dd5a55529af20a38063c8fa4b52ada0623f6f82 Signed-off-by: Amit Purwar --- tests/unittest/utc_bluetooth_mesh_network_positive.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/unittest/utc_bluetooth_mesh_network_positive.c b/tests/unittest/utc_bluetooth_mesh_network_positive.c index b4bdd73..41a2d4c 100644 --- a/tests/unittest/utc_bluetooth_mesh_network_positive.c +++ b/tests/unittest/utc_bluetooth_mesh_network_positive.c @@ -633,14 +633,15 @@ int utc_bluetooth_bt_mesh_network_create_p(void) int utc_bluetooth_bt_mesh_network_load_p(void) { int ret = BT_ERROR_NONE; + bt_mesh_network_h network_local = NULL; if (mesh_supported) { assert_eq(startup_flag, BT_ERROR_NONE); - ret = bt_mesh_network_load(token, &network); + ret = bt_mesh_network_load(token, &network_local); assert_eq(ret, BT_ERROR_NONE); } else { - ret = bt_mesh_network_load(token, &network); + ret = bt_mesh_network_load(token, &network_local); assert_eq(ret, BT_ERROR_NOT_SUPPORTED); } -- 2.7.4