Diff between a1bbc9f0e7e78d5383f2a3e41372b0fc4961a9ce and 1c796532049643e7211016fe8d3697d0b0584602

Changed Files

File Additions Deletions Status
android/android-tester.c +13 -0 modified

Full Patch

diff --git a/android/android-tester.c b/android/android-tester.c
index 56292ea..f4f8e9b 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -710,6 +710,15 @@ static const struct socket_data btsock_inv_params_chan_uuid = {
 	.expected_status = BT_STATUS_PARM_INVALID,
 };
 
+static const struct socket_data btsock_sucess = {
+	.sock_type = BTSOCK_RFCOMM,
+	.channel = 1,
+	.service_uuid = NULL,
+	.service_name = "Test service",
+	.flags = 0,
+	.expected_status = BT_STATUS_SUCCESS,
+};
+
 static void setup_socket_interface(const void *test_data)
 {
 	struct test_data *data = tester_get_data();
@@ -799,5 +808,9 @@ int main(int argc, char *argv[])
 			&btsock_inv_params_chan_uuid,
 			setup_socket_interface, test_generic_listen, teardown);
 
+	test_bredrle("Test Socket Listen - Check returned fd valid",
+			&btsock_sucess,
+			setup_socket_interface, test_generic_listen, teardown);
+
 	return tester_run();
 }