From c723e3e6969e6bb4b9cd5cb5a7dd4c6453b28bd9 Mon Sep 17 00:00:00 2001 From: Grzegorz Kolodziejczyk Date: Wed, 17 Dec 2014 15:01:36 +0100 Subject: [PATCH] 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. --- android/tester-main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.47.3