diff options
author | Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com> | 2014-12-17 15:01:36 +0100 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-12-18 18:37:17 +0100 |
commit | c723e3e6969e6bb4b9cd5cb5a7dd4c6453b28bd9 (patch) | |
tree | c5324c9f90edb423a827af01053222f784601588 /android/tester-main.c | |
parent | 67ba6ce1127a1648c45e47dff136b6ad84d370bc (diff) | |
download | bluez-c723e3e6969e6bb4b9cd5cb5a7dd4c6453b28bd9.tar.gz |
android/tester: Set action status to fail if no l2cap data is given
No status set in zeroized step mean that this status is SUCCESS (value
0). If no data is present while setting l2cap server, status should be
set to FAIL.
Diffstat (limited to 'android/tester-main.c')
-rw-r--r-- | android/tester-main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/android/tester-main.c b/android/tester-main.c index a8a7bd389..ceb5ea864 100644 --- a/android/tester-main.c +++ b/android/tester-main.c @@ -2645,7 +2645,8 @@ void emu_add_l2cap_server_action(void) if (!l2cap_data) { tester_warn("Invalid l2cap_data params"); - return; + step->action_status = BT_STATUS_FAIL; + goto done; } bthost = hciemu_client_get_host(data->hciemu); @@ -2655,6 +2656,7 @@ void emu_add_l2cap_server_action(void) step->action_status = BT_STATUS_SUCCESS; +done: schedule_action_verification(step); } |