Diff between fa2450491e3e4103aac18e00a7336ca76a80996e and 4a60ca797efa1fc2e90e581858eb8b8fe9a5b1a0

Changed Files

File Additions Deletions Status
android/android-tester.c +4 -1 modified

Full Patch

diff --git a/android/android-tester.c b/android/android-tester.c
index af6b154..5f06698 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -753,10 +753,13 @@ static void setup_base(const void *test_data)
 static void setup_enabled_adapter(const void *test_data)
 {
 	struct test_data *data = tester_get_data();
+	bt_status_t status;
 
 	setup(data);
 
-	data->if_bluetooth->enable();
+	status = data->if_bluetooth->enable();
+	if (status != BT_STATUS_SUCCESS)
+		tester_setup_failed();
 }
 
 static void teardown(const void *test_data)