Home
last modified time | relevance | path

Searched refs:TEST_ASSERT (Results 1 – 25 of 33) sorted by relevance

12

/Zephyr-latest/tests/bsim/bluetooth/host/central/src/
Dmain.c21 TEST_ASSERT(conn); in connected_cb_expect_fail()
22 TEST_ASSERT(err == BT_HCI_ERR_UNKNOWN_CONN_ID, "Expected connection timeout"); in connected_cb_expect_fail()
30 TEST_ASSERT(conn); in connected_cb()
31 TEST_ASSERT(err == BT_HCI_ERR_SUCCESS, "Expected connection establishment"); in connected_cb()
71 TEST_ASSERT(err == 0, "Failed starting initiator (err %d)", err); in test_central_connect_timeout_with_timeout()
74 TEST_ASSERT(err == 0, "Failed getting connected timeout within %d s (err %d)", in test_central_connect_timeout_with_timeout()
83 TEST_ASSERT(diff_to_expected_ms < 0.1 * expected_conn_timeout_ms, in test_central_connect_timeout_with_timeout()
97 TEST_ASSERT(err == 0, "Can't enable Bluetooth (err %d)", err); in test_central_connect_timeout()
113 TEST_ASSERT(err == 0, "Can't enable Bluetooth (err %d)", err); in test_central_connect_when_connecting()
128 TEST_ASSERT(err == 0, "Failed starting initiator (err %d)", err); in test_central_connect_when_connecting()
[all …]
Ddummy_peripheral.c15 TEST_ASSERT(conn); in connected_cb()
16 TEST_ASSERT(err == 0, "Expected success"); in connected_cb()
38 TEST_ASSERT(err == 0, "Failed to create iD (err %d)", err); in test_peripheral_dummy()
42 TEST_ASSERT(err == 0, "Can't enable Bluetooth (err %d)", err); in test_peripheral_dummy()
45 TEST_ASSERT(err == 0, "Advertising failed to start (err %d)", err); in test_peripheral_dummy()
48 TEST_ASSERT(err == 0, "Failed getting connected timeout", err); in test_peripheral_dummy()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/settings_clear/src/
Dclient.c52 TEST_ASSERT(err == 0, "Security update failed: %s level %u err %d", addr_str, level, err); in security_changed()
71 TEST_ASSERT(err == 0, "Failed to discover service: %d", err); in find_characteristic()
78 TEST_ASSERT(err == 0, "Failed to get value handle: %d", err); in find_characteristic()
100 TEST_ASSERT(!err, "Subscribe failed (err %d)", err); in sub_cb()
102 TEST_ASSERT(params, "params is NULL"); in sub_cb()
103 TEST_ASSERT(params->value, "Host shouldn't know we have unsubscribed"); in sub_cb()
127 TEST_ASSERT(!err, "Subscribe failed (err %d)", err); in subscribe()
141 TEST_ASSERT(err == 0, "Cannot enable Bluetooth (err %d)", err); in client_procedure()
146 TEST_ASSERT(err == 0, "Failed to load settings (err %d)", err); in client_procedure()
149 TEST_ASSERT(err == 0, "Failed to unpair (err %d)", err); in client_procedure()
[all …]
Dserver.c69 TEST_ASSERT(err == 0, "Security update failed: %s level %u err %d", addr_str, level, err); in security_changed()
85 TEST_ASSERT(err == 0, "Failed to set server conn callbacks (err %d)", err); in init_server_conn_callbacks()
94 TEST_ASSERT(err == 0, "Failed to start scan (err %d)", err); in connect_and_set_security()
97 TEST_ASSERT(err == 0, "Failed to initiate connection (err %d)", err); in connect_and_set_security()
100 TEST_ASSERT(err == 0, "Failed to set security (err %d)", err); in connect_and_set_security()
128 TEST_ASSERT(err == 0, "Cannot enable Bluetooth (err %d)", err); in server_procedure()
133 TEST_ASSERT(err == 0, "Failed to load settings (err %d)", err); in server_procedure()
136 TEST_ASSERT(err == 0, "(1) Failed to unpair (err %d)", err); in server_procedure()
148 TEST_ASSERT(err == 0, "Failed to disconnect (err %d)", err); in server_procedure()
153 TEST_ASSERT(err == 0, "(2) Failed to unpair (err %d)", err); in server_procedure()
/Zephyr-latest/tests/bsim/bluetooth/host/scan/start_stop/src/
Dmain.c101 TEST_ASSERT(!err, "Bluetooth init failed (err %d)\n", err); in run_dut()
121 TEST_ASSERT(!err, "Periodic sync setup failed (err %d)\n", err); in run_dut()
137 TEST_ASSERT(!err, "Scanner setup failed (err %d)\n", err); in run_dut()
145 TEST_ASSERT(!err, "Scanner stop failed (err %d)\n", err); in run_dut()
150 TEST_ASSERT(!err, "Periodic sync stop failed (err %d)\n", err); in run_dut()
164 TEST_ASSERT(!err, "Periodic sync setup failed (err %d)\n", err); in run_dut()
169 TEST_ASSERT(!err, "Scanner setup failed (err %d)\n", err); in run_dut()
176 TEST_ASSERT(!err, "Scanner stop failed (err %d)\n", err); in run_dut()
202 TEST_ASSERT(!err, "Bluetooth init failed (err %d)\n", err); in run_tester()
214 TEST_ASSERT(!err, "Failed to create advertising set: %d", err); in run_tester()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/central/src/
Ddut.c66 TEST_ASSERT(!err, "Failed to enable bluetooth (err %d)"); in dut_procedure_connect_short_rpa_timeout()
70 TEST_ASSERT(!err, "Failed to set RPA timeout (err %d)", err); in dut_procedure_connect_short_rpa_timeout()
73 TEST_ASSERT(!err, "Failed to start scan (err %d)", err); in dut_procedure_connect_short_rpa_timeout()
80 TEST_ASSERT(!err, "Failed to initiate connection (err %d)", err); in dut_procedure_connect_short_rpa_timeout()
95 TEST_ASSERT(!err, "Failed to enable bluetooth (err %d)", err); in dut_procedure_connect_timeout()
99 TEST_ASSERT(!err, "Failed to set RPA timeout (err %d)", err); in dut_procedure_connect_timeout()
105 TEST_ASSERT(err == BT_HCI_ERR_UNKNOWN_CONN_ID, in dut_procedure_connect_timeout()
114 TEST_ASSERT(diff_to_expected_ms < 0.1 * expected_conn_timeout_ms, in dut_procedure_connect_timeout()
Dtester.c151 TEST_ASSERT(!err, "Failed to enable bluetooth (err %d)"); in tester_procedure_periph_delayed_start_of_conn_adv()
155 TEST_ASSERT(!err, "Failed to set RPA timeout (err %d)", err); in tester_procedure_periph_delayed_start_of_conn_adv()
158 TEST_ASSERT(!err, "Failed to create advertising set (err %d)", err); in tester_procedure_periph_delayed_start_of_conn_adv()
165 TEST_ASSERT(!err, "Failed to set advertising data (err %d)", err); in tester_procedure_periph_delayed_start_of_conn_adv()
168 TEST_ASSERT(!err, "Failed to start advertiser (err %d)", err); in tester_procedure_periph_delayed_start_of_conn_adv()
173 TEST_ASSERT(!err, "Failed to stop advertiser (err %d)", err); in tester_procedure_periph_delayed_start_of_conn_adv()
181 TEST_ASSERT(!err, "Failed to restart advertiser (err %d)", err); in tester_procedure_periph_delayed_start_of_conn_adv()
/Zephyr-latest/tests/bsim/bluetooth/host/misc/sample_test/src/
Dpeer.c81 TEST_ASSERT(length == sizeof(payload_1), "Unexpected length: %d", length); in received_notification()
97 TEST_ASSERT(!err, "Subscribe failed (err %d)", err); in sub_cb()
99 TEST_ASSERT(params, "params is NULL"); in sub_cb()
100 TEST_ASSERT(params->value, "Host shouldn't know we have unsubscribed"); in sub_cb()
133 TEST_ASSERT(!err, "Subscribe failed (err %d)", err); in subscribe()
154 TEST_ASSERT(!err, "Unsubscribe failed: err %d", err); in unsubscribe_but_not_really()
175 TEST_ASSERT(err == 0, "Can't enable Bluetooth (err %d)", err); in entrypoint_peer()
180 TEST_ASSERT(!err, "Failed to start connectable advertising (err %d)", err); in entrypoint_peer()
184 TEST_ASSERT(!err, "Failed to find characteristic: %d", err); in entrypoint_peer()
200 TEST_ASSERT(!err, "Failed to disconnect (err %d)", err); in entrypoint_peer()
Ddut.c109 TEST_ASSERT(err == 0, "Can't enable Bluetooth (err %d)", err); in entrypoint_dut()
119 TEST_ASSERT(!err, "Failed to start scan (err %d)", err); in entrypoint_dut()
123 TEST_ASSERT(!err, "Failed to initiate connection (err %d)", err); in entrypoint_dut()
147 TEST_ASSERT(!err, "Failed to send notification: err %d", err); in entrypoint_dut()
154 TEST_ASSERT(!err, "Failed to send notification: err %d", err); in entrypoint_dut()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/reassembly/dut/src/
Ddut.c43 TEST_ASSERT(params->value_handle == GATT_HANDLE, in received_notification()
46 TEST_ASSERT(length == expected_length, in received_notification()
49 TEST_ASSERT(payload_is_correct, "Notification contents mismatch"); in received_notification()
82 TEST_ASSERT(!err, "Subscribe failed (err %d)", err); in fake_subscribe()
92 TEST_ASSERT(!err, "Failed to initiate connection (err %d)", err); in run_test_iteration()
148 TEST_ASSERT(err == 0, "Can't enable Bluetooth (err %d)", err); in entrypoint_dut()
154 TEST_ASSERT(!err, "Failed to start scan (err %d)", err); in entrypoint_dut()
/Zephyr-latest/tests/bsim/bluetooth/host/iso/frag_2/src/
Dbroadcaster.c44 TEST_ASSERT(buf != NULL, "Failed to allocate buffer"); in send_data()
85 TEST_ASSERT(err == 0, "Unable to create extended advertising set: %d", err); in create_ext_adv()
91 TEST_ASSERT(err == 0, "Failed to set periodic advertising parameters: %d", err); in create_ext_adv()
102 TEST_ASSERT(err == 0, "Failed to start extended advertising: %d", err); in start_ext_adv()
111 TEST_ASSERT(err == 0, "Failed to enable periodic advertising: %d", err); in start_ext_adv()
138 TEST_ASSERT(err == 0, "Failed to create BIG: %d", err); in create_big()
167 TEST_ASSERT(err == 0, "Bluetooth enable failed: %d", err); in init()
189 TEST_ASSERT(err == 0, "bt_iso_big_terminate failed (%d)", err); in disconnect_iso()
191 TEST_ASSERT(err == 0, "bt_le_per_adv_stop failed (%d)", err); in disconnect_iso()
194 TEST_ASSERT(err == 0, "bt_le_ext_adv_stop failed (%d)", err); in disconnect_iso()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/misc/acl_tx_frag/src/
Dpeer.c75 TEST_ASSERT(length == GATT_PAYLOAD_SIZE, "Unexpected length: %d", length); in received_notification()
83 TEST_ASSERT(!err, "Subscribe failed (err %d)", err); in sub_cb()
85 TEST_ASSERT(params, "params is NULL"); in sub_cb()
86 TEST_ASSERT(params->value, "Host shouldn't know we have unsubscribed"); in sub_cb()
117 TEST_ASSERT(!err, "Subscribe failed (err %d)", err); in subscribe()
130 TEST_ASSERT(!err, "Failed to start connectable advertising (err %d)", err); in test_iteration()
138 TEST_ASSERT(!err, "Failed to find characteristic: %d", err); in test_iteration()
163 TEST_ASSERT(err == 0, "Can't enable Bluetooth (err %d)", err); in entrypoint_peer()
Ddut.c91 TEST_ASSERT(!err, "Failed MTU exchange (err %d)", err); in exchange_mtu()
114 TEST_ASSERT(!err, "Parameter update failed (err %d)", err); in slow_down_conn()
164 TEST_ASSERT(!err, "Failed to initiate connection (err %d)", err); in test_iteration()
192 TEST_ASSERT(!err, "Failed to send notification: err %d", err); in test_iteration()
199 TEST_ASSERT(!err, "Failed to send notification: err %d", err); in test_iteration()
254 TEST_ASSERT(err == 0, "Can't enable Bluetooth (err %d)", err); in entrypoint_dut()
264 TEST_ASSERT(!err, "Failed to start scan (err %d)", err); in entrypoint_dut()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/ecred/dut/src/
Ddut.c39 TEST_ASSERT("This shouldn't happen"); in l2cap_chan_connected_cb()
84 TEST_ASSERT(err == 0, "Can't enable Bluetooth (err %d)", err); in entrypoint_dut()
88 TEST_ASSERT(!err, "Failed to start scan (err %d)", err); in entrypoint_dut()
92 TEST_ASSERT(!err, "Failed to initiate connection (err %d)", err); in entrypoint_dut()
109 TEST_ASSERT(!err, "Error connecting l2cap channels (err %d)\n", err); in entrypoint_dut()
/Zephyr-latest/tests/bsim/bluetooth/host/iso/frag/src/
Dbroadcaster.c39 TEST_ASSERT(buf != NULL, "Failed to allocate buffer"); in send_data()
86 TEST_ASSERT(err == 0, "Unable to create extended advertising set: %d", err); in create_ext_adv()
92 TEST_ASSERT(err == 0, "Failed to set periodic advertising parameters: %d", err); in create_ext_adv()
103 TEST_ASSERT(err == 0, "Failed to start extended advertising: %d", err); in start_ext_adv()
112 TEST_ASSERT(err == 0, "Failed to enable periodic advertising: %d", err); in start_ext_adv()
139 TEST_ASSERT(err == 0, "Failed to create BIG: %d", err); in create_big()
167 TEST_ASSERT(err == 0, "Bluetooth enable failed: %d", err); in init()
205 TEST_ASSERT(!err, "Failed to send data w/o TS (err %d)", err); in entrypoint_broadcaster()
214 TEST_ASSERT(!err, "Failed to send data w/ TS (err %d)", err); in entrypoint_broadcaster()
232 TEST_ASSERT(pb_flag == BT_ISO_SINGLE, "Packet was fragmented"); in validate_no_iso_frag()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/multilink_peripheral/src/
Dcentral.c76 TEST_ASSERT(err == 0, "Failed to register l2cap server (err %d)", err); in l2cap_server_register()
120 TEST_ASSERT(err == 0, "Can't register callbacks (err %d)", err); in entrypoint_central()
123 TEST_ASSERT(err == 0, "Can't enable Bluetooth (err %d)", err); in entrypoint_central()
135 TEST_ASSERT(!err, "Failed to start scan (err %d)", err); in entrypoint_central()
146 TEST_ASSERT(!err, "Failed to initiate connection (err %d)", err); in entrypoint_central()
155 TEST_ASSERT(!err, "Failed to disconnect (err %d)", err); in entrypoint_central()
Ddut.c64 TEST_ASSERT(ret == 0, "Failed sending: err %d", ret); in send_data_over_l2cap()
74 TEST_ASSERT(ctx->le_chan.state == BT_L2CAP_CONNECTED, in resume_sending_until_done()
95 TEST_ASSERT(PART_OF_ARRAY(contexts, ctx), "memory corruption"); in get_ctx_from_chan()
198 TEST_ASSERT(err == 0, "Failed to connect to %s (0x%02x)", addr, err); in acl_connected()
208 TEST_ASSERT(ctx, "Couldn't allocate ctx for conn %p", conn); in acl_connected()
215 TEST_ASSERT(!ret, "Error connecting l2cap channel (err %d)", ret); in acl_connected()
255 TEST_ASSERT(!err, "Advertising failed to start (err %d)", err); in start_advertising()
266 TEST_ASSERT(total_sdu_count <= (SDU_NUM * CONFIG_BT_MAX_CONN), in all_data_transferred()
314 TEST_ASSERT(err == 0, "Can't register callbacks (err %d)", err); in entrypoint_dut()
317 TEST_ASSERT(err == 0, "Can't enable Bluetooth (err %d)", err); in entrypoint_dut()
/Zephyr-latest/tests/bsim/bluetooth/host/scan/slow/src/
Dpeer.c30 TEST_ASSERT(!err, "Bluetooth init failed (err %d)\n", err); in entrypoint_peer()
40 TEST_ASSERT(!err, "Failed to create advertising set: %d", err); in entrypoint_peer()
44 TEST_ASSERT(!err, "Failed to start extended advertising: %d", err); in entrypoint_peer()
Ddut.c71 TEST_ASSERT(!err, "Bluetooth init failed (err %d)\n", err); in entrypoint_dut()
76 TEST_ASSERT(!err, "Scanner setup failed (err %d)\n", err); in entrypoint_dut()
/Zephyr-latest/tests/bsim/bluetooth/host/iso/bis/src/
Dbis_broadcaster.c57 TEST_ASSERT(buf != NULL, "Failed to allocate buffer"); in send_data()
142 TEST_ASSERT(err == 0, "Bluetooth enable failed: %d", err); in init()
160 TEST_ASSERT(err == 0, "Unable to create extended advertising set: %d", err); in create_ext_adv()
166 TEST_ASSERT(err == 0, "Failed to set periodic advertising parameters: %d", err); in create_ext_adv()
177 TEST_ASSERT(err == 0, "Failed to start extended advertising: %d", err); in start_ext_adv()
186 TEST_ASSERT(err == 0, "Failed to enable periodic advertising: %d", err); in start_ext_adv()
210 TEST_ASSERT(err == 0, "Failed to create BIG: %d", err); in create_big()
234 TEST_ASSERT(err == 0, "Failed to terminate BIG: %d", err); in terminate_big()
246 TEST_ASSERT(err == 0, "Failed to disable: %d", err); in reset_bluetooth()
249 TEST_ASSERT(err == 0, "Failed to re-enable: %d", err); in reset_bluetooth()
Dbis_receiver.c167 TEST_ASSERT(err == 0, "Bluetooth enable failed (err %d)", err); in init()
203 TEST_ASSERT(err == 0, "Failed to start scan: %d", err); in scan_and_sync_pa()
215 TEST_ASSERT(err == 0, "Failed to sync to PA: %d", err); in scan_and_sync_pa()
221 TEST_ASSERT(err == 0, "Failed to stop scan: %d", err); in scan_and_sync_pa()
237 TEST_ASSERT(cnt <= ARRAY_SIZE(bis_channels)); in sync_big()
244 TEST_ASSERT(err == 0, "Failed to create BIG sync: %d"); in sync_big()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/ecred/peer/src/
Dpeer.c32 TEST_ASSERT(err == 0, "Can't enable Bluetooth (err %d)", err); in entrypoint_peer()
35 TEST_ASSERT(!err, "Failed to start connectable advertising (err %d)", err); in entrypoint_peer()
/Zephyr-latest/tests/bsim/bluetooth/host/misc/hfc_multilink/dut/src/
Ddut.c106 TEST_ASSERT(err == 0, "Failed to register l2cap server (err %d)", err); in l2cap_server_register()
122 TEST_ASSERT(!err, "Failed to start scan (err %d)", err); in connect_tester()
126 TEST_ASSERT(!err, "Failed to initiate connection (err %d)", err); in connect_tester()
142 TEST_ASSERT(total_sdu_count <= (SDU_NUM * NUM_TESTERS), "Received more SDUs than expected"); in all_data_transferred()
190 TEST_ASSERT(err == 0, "Can't enable Bluetooth (err %d)", err); in entrypoint_dut()
/Zephyr-latest/tests/bsim/bluetooth/host/adv/long_ad/src/
Dadvertiser.c141 TEST_ASSERT(err == 0, "Can't enable Bluetooth (err %d)", err); in entrypoint_advertiser()
149 TEST_ASSERT(err == -EDOM, in entrypoint_advertiser()
155 TEST_ASSERT(err == 0, in entrypoint_advertiser()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/reassembly/peer/src/
Dpeer.c67 TEST_ASSERT(buf, "failed allocation"); in bt_hci_cmd_create()
115 TEST_ASSERT(status == 0x00, "cmd 0x%x status: 0x%x", opcode, status); in handle_cmd_complete()
117 TEST_ASSERT(active_opcode == opcode, "unexpected opcode %x != %x", active_opcode, opcode); in handle_cmd_complete()
203 TEST_ASSERT(buf->len == hdr->len, "buflen = %d != hdrlen %d", in handle_l2cap()
206 TEST_ASSERT(cid == BT_L2CAP_CID_ATT, "We only support (U)ATT"); in handle_l2cap()
225 TEST_ASSERT(flags == BT_ACL_START, in handle_acl()
286 TEST_ASSERT(active_opcode == 0xFFFF, ""); in send_cmd()
356 TEST_ASSERT(buf, ""); in set_event_mask()
374 TEST_ASSERT(buf, ""); in set_random_address()
431 TEST_ASSERT(buf); in disconnect()
[all …]

12