Modify logs in the mesh senario 64/242364/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 25 Aug 2020 23:15:13 +0000 (08:15 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 25 Aug 2020 23:15:13 +0000 (08:15 +0900)
Change-Id: Id3ea2ce5c5eea339f7bc47f8a9415e18e1ce46e0
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
tests/test/bt_mesh_unit_test.c

index 5dfb990..e274ec8 100644 (file)
@@ -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 */