Home
last modified time | relevance | path

Searched refs:zassert_mem_equal (Results 1 – 25 of 154) sorted by relevance

1234567

/Zephyr-latest/tests/bluetooth/hci/src/
Dmain.c20 zassert_mem_equal(bt_hci_err_to_str(BT_HCI_ERR_CONN_TIMEOUT), in ZTEST()
22 zassert_mem_equal(bt_hci_err_to_str(BT_HCI_ERR_REMOTE_USER_TERM_CONN), in ZTEST()
25 zassert_mem_equal(bt_hci_err_to_str(BT_HCI_ERR_TOO_EARLY), in ZTEST()
29 zassert_mem_equal(bt_hci_err_to_str(0x2b), in ZTEST()
31 zassert_mem_equal(bt_hci_err_to_str(0xFF), in ZTEST()
/Zephyr-latest/tests/lib/c_lib/common/src/
Dtest_qsort.c32 zassert_mem_equal(actual_int, expect_int, sizeof(expect_int), in ZTEST()
41 zassert_mem_equal(actual_int, expect_int, sizeof(expect_int), in ZTEST()
50 zassert_mem_equal(actual_int, expect_int, sizeof(expect_int), in ZTEST()
59 zassert_mem_equal(actual_int, expect_int, sizeof(expect_int), in ZTEST()
68 zassert_mem_equal(actual_int, expect_int, sizeof(expect_int), in ZTEST()
95 zassert_mem_equal(actual_int, expect_int, sizeof(expect_int), in ZTEST()
126 zassert_mem_equal(actual_int, expect_int, sizeof(expect_int), in ZTEST()
151 zassert_mem_equal(actual_int, expect_int, sizeof(expect_int), "array not sorted"); in ZTEST()
/Zephyr-latest/tests/lib/net_buf/buf_simple/src/
Dmain.c71 zassert_mem_equal(le16, net_buf_simple_pull_mem(&buf, sizeof(le16)), in ZTEST()
79 zassert_mem_equal(be16, net_buf_simple_pull_mem(&buf, sizeof(be16)), in ZTEST()
103 zassert_mem_equal(le24, net_buf_simple_pull_mem(&buf, sizeof(le24)), in ZTEST()
111 zassert_mem_equal(be24, net_buf_simple_pull_mem(&buf, sizeof(be24)), in ZTEST()
135 zassert_mem_equal(le32, net_buf_simple_pull_mem(&buf, sizeof(le32)), in ZTEST()
143 zassert_mem_equal(be32, net_buf_simple_pull_mem(&buf, sizeof(be32)), in ZTEST()
167 zassert_mem_equal(le40, net_buf_simple_pull_mem(&buf, sizeof(le40)), in ZTEST()
175 zassert_mem_equal(be40, net_buf_simple_pull_mem(&buf, sizeof(be40)), in ZTEST()
199 zassert_mem_equal(le48, net_buf_simple_pull_mem(&buf, sizeof(le48)), in ZTEST()
207 zassert_mem_equal(be48, net_buf_simple_pull_mem(&buf, sizeof(be48)), in ZTEST()
[all …]
/Zephyr-latest/tests/bluetooth/bt_crypto/src/
Dtest_bt_crypto.c37 zassert_mem_equal(res, exp_mac1, 16); in ZTEST()
40 zassert_mem_equal(res, exp_mac2, 16); in ZTEST()
43 zassert_mem_equal(res, exp_mac3, 16); in ZTEST()
46 zassert_mem_equal(res, exp_mac4, 16); in ZTEST()
66 zassert_mem_equal(res, exp_res, 16); in ZTEST()
88 zassert_mem_equal(mackey, exp_mackey, 16); in ZTEST()
89 zassert_mem_equal(ltk, exp_ltk, 16); in ZTEST()
111 zassert_mem_equal(res, exp_res, 16); in ZTEST()
145 zassert_mem_equal(res, exp_res, 16); in ZTEST()
160 zassert_mem_equal(res, exp_res, 16); in ZTEST()
[all …]
/Zephyr-latest/tests/bluetooth/host/id/bt_id_create/src/
Dtest_suite_privacy_enabled.c76 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST()
78 zassert_mem_equal(&bt_dev.irk[new_id], testing_irk_value, sizeof(testing_irk_value), in ZTEST()
118 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST()
120 zassert_mem_equal(&bt_dev.irk[new_id], testing_irk_value, sizeof(testing_irk_value), in ZTEST()
122 zassert_mem_equal(zero_irk, testing_irk_value, sizeof(testing_irk_value), in ZTEST()
160 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST()
162 zassert_mem_equal(&bt_dev.irk[new_id], testing_irk_value, sizeof(testing_irk_value), in ZTEST()
Dmain.c76 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST()
113 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_STATIC_RANDOM_LE_ADDR_2, sizeof(bt_addr_le_t), in ZTEST()
149 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST()
151 zassert_mem_equal(&addr, BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST()
215 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST()
252 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_LE_ADDR, sizeof(bt_addr_le_t), in ZTEST()
/Zephyr-latest/tests/posix/single_process/src/
Denv.c44 zassert_mem_equal(getenv("HOME"), M_HOME, strlen(M_HOME) + 1); in ZTEST()
45 zassert_mem_equal(getenv("UID"), M_UID, strlen(M_UID) + 1); in ZTEST()
46 zassert_mem_equal(getenv("PWD"), M_PWD, strlen(M_PWD) + 1); in ZTEST()
87 zassert_mem_equal(getenv("HOME"), M_HOME, strlen(M_HOME) + 1); in ZTEST()
88 zassert_mem_equal(getenv("UID"), M_UID, strlen(M_UID) + 1); in ZTEST()
89 zassert_mem_equal(getenv("PWD"), M_PWD, strlen(M_PWD) + 1); in ZTEST()
109 zassert_mem_equal(getenv("HOME"), M_HOME, strlen(M_HOME) + 1); in ZTEST()
113 zassert_mem_equal(getenv("HOME"), "/root", strlen("/root") + 1); in ZTEST()
134 zassert_mem_equal(getenv("HOME"), _m_alt_home, strlen(_m_alt_home) + 1); in ZTEST()
151 zassert_mem_equal(getenv("COUNTER"), buf, strlen(buf)); in ZTEST()
/Zephyr-latest/tests/kernel/common/src/
Dbyteorder.c106 zassert_mem_equal(tmp, buf, sizeof(uint64_t), "sys_put_be64() failed"); in ZTEST()
140 zassert_mem_equal(tmp, buf, sizeof(buf), "sys_put_be40() failed"); in ZTEST()
178 zassert_mem_equal(tmp, buf, sizeof(buf), "sys_put_be48() failed"); in ZTEST()
217 zassert_mem_equal(tmp, buf, sizeof(uint32_t), "sys_put_be32() failed"); in ZTEST()
256 zassert_mem_equal(tmp, buf, sizeof(buf), "sys_put_be24() failed"); in ZTEST()
295 zassert_mem_equal(tmp, buf, sizeof(uint16_t), "sys_put_be16() failed"); in ZTEST()
334 zassert_mem_equal(tmp, buf, sizeof(uint16_t), "sys_put_le16() failed"); in ZTEST()
373 zassert_mem_equal(tmp, buf, sizeof(buf), "sys_put_le24() failed"); in ZTEST()
412 zassert_mem_equal(tmp, buf, sizeof(uint32_t), "sys_put_le32() failed"); in ZTEST()
447 zassert_mem_equal(tmp, buf, sizeof(buf), "sys_put_le40() failed"); in ZTEST()
[all …]
/Zephyr-latest/tests/posix/net/src/
Dinet_ntoa.c17 zassert_mem_equal(inet_ntoa(in), "127.0.0.1", strlen("127.0.0.1") + 1); in ZTEST()
20 zassert_mem_equal(inet_ntoa(in), "0.0.0.0", strlen("0.0.0.0") + 1); in ZTEST()
23 zassert_mem_equal(inet_ntoa(in), "255.255.255.255", strlen("255.255.255.255") + 1); in ZTEST()
/Zephyr-latest/tests/cmake/overlays/soc_folder_kconfig/src/
Dmain.c70 zassert_mem_equal(STRING_OUTPUT, "five", strlen("five"), "Expected string to match"); in ZTEST()
75 zassert_mem_equal(STRING_OUTPUT, "two", strlen("two"), "Expected string to match"); in ZTEST()
92 zassert_mem_equal(STRING_OUTPUT, "four", strlen("four"), "Expected string to match"); in ZTEST()
114 zassert_mem_equal(STRING_OUTPUT, "three", strlen("three"), "Expected string to match"); in ZTEST()
129 zassert_mem_equal(STRING_OUTPUT, "three", strlen("three"), "Expected string to match"); in ZTEST()
/Zephyr-latest/tests/subsys/usb/uac2/src/
Duac2_desc.c327 zassert_mem_equal(reference_ac_interface_descriptor, *ptr, in test_uac2_descriptors()
330 zassert_mem_equal(reference_ac_clock_source_descriptor, *ptr, in test_uac2_descriptors()
333 zassert_mem_equal(reference_ac_hp_input_terminal_descriptor, *ptr, in test_uac2_descriptors()
336 zassert_mem_equal(reference_ac_hp_feature_unit_descriptor, *ptr, in test_uac2_descriptors()
339 zassert_mem_equal(reference_ac_hp_output_terminal_descriptor, *ptr, in test_uac2_descriptors()
342 zassert_mem_equal(reference_ac_mic_input_terminal_descriptor, *ptr, in test_uac2_descriptors()
345 zassert_mem_equal(reference_ac_mic_feature_unit_descriptor, *ptr, in test_uac2_descriptors()
348 zassert_mem_equal(reference_ac_mic_output_terminal_descriptor, *ptr, in test_uac2_descriptors()
381 zassert_mem_equal(reference_as_out_cs_general_descriptor, *ptr, in test_uac2_descriptors()
384 zassert_mem_equal(reference_as_out_cs_format_descriptor, *ptr, in test_uac2_descriptors()
[all …]
/Zephyr-latest/tests/subsys/bindesc/reading/src/
Dmain.c54 zassert_mem_equal("3.5.99", result, sizeof("3.5.99")); in test_bindesc_read()
57 zassert_mem_equal("1.0.0", result, sizeof("1.0.0")); in test_bindesc_read()
60 zassert_mem_equal("GNU", result, sizeof("GNU")); in test_bindesc_read()
63 zassert_mem_equal("12.2.0", result, sizeof("12.2.0")); in test_bindesc_read()
/Zephyr-latest/tests/subsys/logging/log_custom_header/src/
Dlog_custom_header.c58 zassert_mem_equal(output, CUSTOM_LOG_PREFIX "DBG 0", strlen(output)); in ZTEST()
63 zassert_mem_equal(output, CUSTOM_LOG_PREFIX "INF foo", strlen(output)); in ZTEST()
68 zassert_mem_equal(output, CUSTOM_LOG_PREFIX "WRN ff", strlen(output)); in ZTEST()
73 zassert_mem_equal(output, CUSTOM_LOG_PREFIX "ERR 1 2 3", strlen(output)); in ZTEST()
/Zephyr-latest/tests/subsys/fs/ext2/src/
Dtestfs_dirops.c43 zassert_mem_equal(stat.name, "dir1", 5, "Wrong directory name"); in ZTEST()
48 zassert_mem_equal(stat.name, "dir2", 5, "Wrong directory name"); in ZTEST()
62 zassert_mem_equal(stat.name, "file1", 6, "Wrong file name"); in ZTEST()
67 zassert_mem_equal(stat.name, "file2", 6, "Wrong file name"); in ZTEST()
72 zassert_mem_equal(stat.name, "file3", 6, "Wrong file name"); in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_id_delete/src/
Dtest_suite_bt_settings.c68 zassert_mem_equal(&bt_dev.id_addr[id], BT_ADDR_LE_ANY, sizeof(bt_addr_le_t), in ZTEST()
71 zassert_mem_equal(bt_dev.irk[id], zero_irk, sizeof(zero_irk), in ZTEST()
123 zassert_mem_equal(&bt_dev.id_addr[id], BT_ADDR_LE_ANY, sizeof(bt_addr_le_t), in ZTEST()
126 zassert_mem_equal(bt_dev.irk[id], zero_irk, sizeof(zero_irk), in ZTEST()
Dmain.c73 zassert_mem_equal(&bt_dev.id_addr[id], BT_ADDR_LE_ANY, sizeof(bt_addr_le_t), in ZTEST()
76 zassert_mem_equal(bt_dev.irk[id], zero_irk, sizeof(zero_irk), in ZTEST()
121 zassert_mem_equal(&bt_dev.id_addr[id], BT_ADDR_LE_ANY, sizeof(bt_addr_le_t), in ZTEST()
124 zassert_mem_equal(bt_dev.irk[id], zero_irk, sizeof(zero_irk), in ZTEST()
/Zephyr-latest/tests/subsys/shell/shell_backend_uart/src/
Dmain.c65 zassert_mem_equal(tx_content, "Zephyr version " KERNEL_VERSION_STRING, in ZTEST_F()
79 zassert_mem_equal(tx_content, "cycles: ", strlen("cycles: ")); in ZTEST_F()
92 zassert_mem_equal(tx_content, "Uptime: ", strlen("Uptime: ")); in ZTEST_F()
126 zassert_mem_equal(tx_content, "\r\n", strlen("\r\n")); in setup()
/Zephyr-latest/tests/boards/nrf/i2c/i2c_slave/src/
Dmain.c69 zassert_mem_equal(i2c_slave_buffer, msg, TEST_DATA_SIZE); in i2s_slave_handler()
122 zassert_mem_equal(fixture->master_buffer, msg, TEST_DATA_SIZE); in ZTEST_USER_F()
129 zassert_mem_equal(fixture->slave_buffer, msg, TEST_DATA_SIZE); in ZTEST_USER_F()
134 zassert_mem_equal(fixture->master_buffer, msg, TEST_DATA_SIZE); in ZTEST_USER_F()
142 zassert_mem_equal(fixture->slave_buffer, msg, TEST_DATA_SIZE); in ZTEST_USER_F()
/Zephyr-latest/tests/posix/signals/src/
Dmain.c203 zassert_mem_equal(strsignal(-1), "Invalid signal", sizeof("Invalid signal")); in ZTEST()
204 zassert_mem_equal(strsignal(0), "Invalid signal", sizeof("Invalid signal")); in ZTEST()
205 zassert_mem_equal(strsignal(_NSIG), "Invalid signal", sizeof("Invalid signal")); in ZTEST()
207 zassert_mem_equal(strsignal(30), "Signal 30", sizeof("Signal 30")); in ZTEST()
209 zassert_mem_equal(strsignal(SIGRTMIN), buf, strlen(buf)); in ZTEST()
211 zassert_mem_equal(strsignal(SIGRTMAX), buf, strlen(buf)); in ZTEST()
214 zassert_mem_equal(strsignal(SIGHUP), "Hangup", sizeof("Hangup")); in ZTEST()
215 zassert_mem_equal(strsignal(SIGSYS), "Bad system call", sizeof("Bad system call")); in ZTEST()
217 zassert_mem_equal(strsignal(SIGHUP), "Signal 1", sizeof("Signal 1")); in ZTEST()
218 zassert_mem_equal(strsignal(SIGSYS), "Signal 31", sizeof("Signal 31")); in ZTEST()
[all …]
/Zephyr-latest/tests/drivers/retained_mem/api/src/
Dmain.c45 zassert_mem_equal(data, buffer, sizeof(data), "Expected written data to match"); in ZTEST()
69 zassert_mem_equal(data, buffer, sizeof(data), "Expected written data to match"); in ZTEST()
77 zassert_mem_equal(empty_data, buffer, sizeof(empty_data), "Expected data to be 0x00's"); in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_setup_random_id_addr/src/
Dmain.c117 zassert_mem_equal(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST()
172 zassert_mem_equal(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST()
174 zassert_mem_equal(&bt_dev.id_addr[1].a, BT_ADDR, sizeof(bt_addr_t), in ZTEST()
226 zassert_mem_equal(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST()
228 zassert_mem_equal(&bt_dev.id_addr[1], BT_STATIC_RANDOM_LE_ADDR_2, sizeof(bt_addr_le_t), in ZTEST()
/Zephyr-latest/tests/bluetooth/smp/src/
Dmain.c30 zassert_mem_equal(bt_smp_err_to_str(0x10), in ZTEST()
32 zassert_mem_equal(bt_smp_err_to_str(0xFF), in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_id_reset/src/
Dmain.c84 zassert_mem_equal(&bt_dev.id_addr[returned_id], BT_STATIC_RANDOM_LE_ADDR_1, in ZTEST()
123 zassert_mem_equal(&bt_dev.id_addr[returned_id], BT_STATIC_RANDOM_LE_ADDR_2, in ZTEST()
163 zassert_mem_equal(&bt_dev.id_addr[returned_id], BT_STATIC_RANDOM_LE_ADDR_1, in ZTEST()
165 zassert_mem_equal(&addr, BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST()
235 zassert_mem_equal(&bt_dev.id_addr[returned_id], BT_STATIC_RANDOM_LE_ADDR_1, in ZTEST()
/Zephyr-latest/tests/drivers/w1/w1_api/src/
Dmain.c124 zassert_mem_equal(&rom_x, &rom_01, sizeof(rom_01), in ZTEST_USER()
127 zassert_mem_equal(&rom_x, &rom_02, sizeof(rom_02), in ZTEST_USER()
130 zassert_mem_equal(&rom_x, &rom_03, sizeof(rom_03), in ZTEST_USER()
141 zassert_mem_equal(&rom_x, &rom_01, sizeof(rom_01), in ZTEST_USER()
146 zassert_mem_equal(&rom_x, &rom_02, sizeof(rom_02), in ZTEST_USER()
151 zassert_mem_equal(&rom_x, &rom_03, sizeof(rom_03), in ZTEST_USER()
226 zassert_mem_equal(block_rcv, block_ref, sizeof(block_rcv), in ZTEST_USER()
/Zephyr-latest/tests/lib/net_buf/buf/src/
Dmain.c447 zassert_mem_equal(clone->data, data, sizeof(data)); in ZTEST()
567 zassert_mem_equal(le16, net_buf_pull_mem(buf, sizeof(le16)), in ZTEST()
569 zassert_mem_equal(be16, net_buf_pull_mem(buf, sizeof(be16)), in ZTEST()
586 zassert_mem_equal(le24, net_buf_pull_mem(buf, sizeof(le24)), in ZTEST()
588 zassert_mem_equal(be24, net_buf_pull_mem(buf, sizeof(be24)), in ZTEST()
605 zassert_mem_equal(le32, net_buf_pull_mem(buf, sizeof(le32)), in ZTEST()
607 zassert_mem_equal(be32, net_buf_pull_mem(buf, sizeof(be32)), in ZTEST()
623 zassert_mem_equal(le40, net_buf_pull_mem(buf, sizeof(le40)), sizeof(le40), in ZTEST()
625 zassert_mem_equal(be40, net_buf_pull_mem(buf, sizeof(be40)), sizeof(be40), in ZTEST()
642 zassert_mem_equal(le48, net_buf_pull_mem(buf, sizeof(le48)), in ZTEST()
[all …]

1234567