From 4a60ca797efa1fc2e90e581858eb8b8fe9a5b1a0 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Wed, 18 Dec 2013 10:55:11 +0200 Subject: [PATCH] android/tester: Check status returned from HAL calls In test setup phase check status returned from enable() call. --- android/android-tester.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/android/android-tester.c b/android/android-tester.c index af6b1549c..5f0669825 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) -- 2.47.3