From: DoHyun Pyun Date: Tue, 25 Aug 2020 23:15:13 +0000 (+0900) Subject: Modify logs in the mesh senario X-Git-Tag: accepted/tizen/unified/20200831.002541~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b69262ceb5cd6018c1edbac6190cf2633982269;p=platform%2Fcore%2Fapi%2Fbluetooth.git Modify logs in the mesh senario Change-Id: Id3ea2ce5c5eea339f7bc47f8a9415e18e1ce46e0 Signed-off-by: DoHyun Pyun --- diff --git a/tests/test/bt_mesh_unit_test.c b/tests/test/bt_mesh_unit_test.c index 5dfb990..e274ec8 100644 --- a/tests/test/bt_mesh_unit_test.c +++ b/tests/test/bt_mesh_unit_test.c @@ -74,6 +74,7 @@ static void wait_for_async_over() } static void wait_for_async() { + TC_PRT("Wait for operation...\n"); mainloop = g_main_loop_new(NULL, FALSE); g_main_loop_run(mainloop); } @@ -2578,9 +2579,7 @@ int test_input_callback(void *data) /* Stop any ongoing scan */ ret = bt_mesh_stop_unprovisioned_device_scan(network); - if (ret != BT_ERROR_NONE) - TC_PRT("return %s\n", __bt_get_error_message(ret)); - else + if (ret == BT_ERROR_NONE) wait_for_async(); /* Start scan */ @@ -2601,9 +2600,7 @@ int test_input_callback(void *data) /* Stop any ongoing scan */ ret = bt_mesh_stop_unprovisioned_device_scan(network); - if (ret != BT_ERROR_NONE) - TC_PRT("return %s\n", __bt_get_error_message(ret)); - else + if (ret == BT_ERROR_NONE) wait_for_async(); /* Provision device */