summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-08-04 14:51:54 -0700
committerAyush Garg <ayush.garg@samsung.com>2024-01-05 19:04:03 +0530
commit9d26c1f7e76b114ddc096ef4ca0079af3b2f274b (patch)
tree97da6fca62172cf70f36cfa3c9030dcbde240e0d
parentae6c21fbbc166fc88d8af1c6a68f141c18c4c1f4 (diff)
downloadbluez-9d26c1f7e76b114ddc096ef4ca0079af3b2f274b.tar.gz
bluez-9d26c1f7e76b114ddc096ef4ca0079af3b2f274b.tar.bz2
bluez-9d26c1f7e76b114ddc096ef4ca0079af3b2f274b.zip
iso-tester: Fix test ISO Connect2 CIG 0x01 - Success/Invalid
This test shall succeed rather than fail as this appears to be a bug in the kernel code preventing Set CIG Parameters to work properly when there are concurrent tasks only one CIS is being programmed.
-rw-r--r--tools/iso-tester.c29
1 files changed, 3 insertions, 26 deletions
diff --git a/tools/iso-tester.c b/tools/iso-tester.c
index bbf95942..9b9716e0 100644
--- a/tools/iso-tester.c
+++ b/tools/iso-tester.c
@@ -2402,29 +2402,6 @@ static void test_connect2_seq(const void *test_data)
setup_connect(data, 0, iso_connect2_seq_cb);
}
-static void test_connect2_nodefer(const void *test_data)
-{
- struct test_data *data = tester_get_data();
- int sk, err;
-
- /* Second connect() shall fail, because CIG is then busy,
- * but the first connect() shall succeed.
- */
- setup_connect(data, 0, iso_connect_cb);
-
- sk = create_iso_sock(data);
- if (sk < 0) {
- tester_test_failed();
- return;
- }
-
- err = connect_iso_sock(data, 1, sk);
- if (err != -EINVAL)
- tester_test_failed();
-
- close(sk);
-}
-
static gboolean iso_connect_close_cb(GIOChannel *io, GIOCondition cond,
gpointer user_data)
{
@@ -2697,13 +2674,13 @@ int main(int argc, char *argv[])
test_iso("ISO Connect Wait Close - Success", &connect_16_2_1,
setup_powered, test_connect_wait_close);
- test_iso2("ISO Defer Connect2 CIG 0x01 - Success", &defer_1_16_2_1,
+ test_iso2("ISO Connect2 CIG 0x01 - Success", &connect_1_16_2_1,
setup_powered,
test_connect2);
- test_iso2("ISO Connect2 CIG 0x01 - Success/Invalid", &connect_1_16_2_1,
+ test_iso2("ISO Defer Connect2 CIG 0x01 - Success", &defer_1_16_2_1,
setup_powered,
- test_connect2_nodefer);
+ test_connect2);
test_iso("ISO Defer Send - Success", &connect_16_2_1_defer_send,
setup_powered,