/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/ |
D | build_date.c | 131 zassert_equal(strlen(test_date_time), output.len, in ZTEST() 133 strlen(test_date_time), output.len); in ZTEST() 138 zassert_mem_equal(&test_date_time[(strlen(test_date_time) - DATE_CHECK_RIGHT_CHARS)], in ZTEST() 139 &output.value[(strlen(test_date_time) - DATE_CHECK_RIGHT_CHARS)], in ZTEST() 209 zassert_equal((strlen(test_date_time) + strlen(response_all_board_revision_left) + in ZTEST() 210 strlen(response_all_board_revision_right)), output.len, in ZTEST() 212 (strlen(test_date_time) + strlen(response_all_board_revision_left) + in ZTEST() 213 strlen(response_all_board_revision_right)), output.len); in ZTEST() 216 strlen(response_all_board_revision_left), in ZTEST() 219 &output.value[strlen(response_all_board_revision_left) + in ZTEST() [all …]
|
/Zephyr-latest/tests/net/lib/lwm2m/content_plain_text/src/ |
D | main.c | 61 memcpy(test_payload + 1, payload, strlen(payload)); in test_payload_set() 62 test_packet.offset = strlen(payload) + 1; in test_payload_set() 76 zassert_equal(ret, strlen(expected_payload[i]), in ZTEST() 80 strlen(expected_payload[i]), in ZTEST() 83 offset += strlen(expected_payload[i]); in ZTEST() 107 zassert_equal(ret, strlen(expected_payload[i]), in ZTEST() 111 strlen(expected_payload[i]), in ZTEST() 114 offset += strlen(expected_payload[i]); in ZTEST() 138 zassert_equal(ret, strlen(expected_payload[i]), in ZTEST() 142 strlen(expected_payload[i]), in ZTEST() [all …]
|
/Zephyr-latest/tests/bluetooth/hci/src/ |
D | main.c | 21 "BT_HCI_ERR_CONN_TIMEOUT", strlen("BT_HCI_ERR_CONN_TIMEOUT")); in ZTEST() 24 strlen("BT_HCI_ERR_REMOTE_USER_TERM_CONN")); in ZTEST() 26 "BT_HCI_ERR_TOO_EARLY", strlen("BT_HCI_ERR_TOO_EARLY")); in ZTEST() 30 "(unknown)", strlen("(unknown)")); in ZTEST() 32 "(unknown)", strlen("(unknown)")); in ZTEST()
|
/Zephyr-latest/tests/net/lib/lwm2m/content_link_format/src/ |
D | main.c | 132 zassert_equal(ret, strlen(expected_payload), in ZTEST() 135 strlen(expected_payload), "Invalid payload format"); in ZTEST() 136 zassert_equal(test_out.out_cpkt->offset, strlen(expected_payload), in ZTEST() 148 zassert_equal(ret, strlen(expected_payload), in ZTEST() 151 strlen(expected_payload), "Invalid payload format"); in ZTEST() 152 zassert_equal(test_out.out_cpkt->offset, strlen(expected_payload), in ZTEST() 164 zassert_equal(ret, strlen(expected_payload), in ZTEST() 167 strlen(expected_payload), "Invalid payload format"); in ZTEST() 168 zassert_equal(test_out.out_cpkt->offset, strlen(expected_payload), in ZTEST() 234 zassert_equal(ret, strlen(test_case[i].expected_payload), in ZTEST() [all …]
|
/Zephyr-latest/tests/posix/single_process/src/ |
D | env.c | 44 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/posix/net/src/ |
D | inet_ntoa.c | 17 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/lib/sprintf/src/ |
D | main.c | 284 zassert_true((strlen(buffer) == 382), in ZTEST() 286 strlen(buffer)); in ZTEST() 299 zassert_true((strlen(buffer) == 383), in ZTEST() 301 strlen(buffer)); in ZTEST() 427 zassert_true((len == strlen(DEADBEEF_LHEX_STR)), in ZTEST() 429 strlen(DEADBEEF_LHEX_STR), len); in ZTEST() 437 zassert_true((len == strlen(DEADBEEF_LHEX_STR)), in ZTEST() 439 strlen(DEADBEEF_LHEX_STR), len); in ZTEST() 481 zassert_true((len == strlen(DEADBEEF_LHEX_STR)), in ZTEST() 483 strlen(DEADBEEF_LHEX_STR), len); in ZTEST() [all …]
|
/Zephyr-latest/tests/cmake/overlays/soc_folder_kconfig/src/ |
D | main.c | 70 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/net/lib/http_header_fields/src/ |
D | main.c | 601 strlen(test->url), in ZTEST() 636 parsed = http_parser_execute(&parser, &settings_null, buf, strlen(buf)); in ZTEST() 638 zassert_equal(parsed, strlen(buf), in ZTEST() 640 zassert_equal(parser.nread, strlen(buf), in ZTEST() 653 parsed = http_parser_execute(&parser, &settings_null, buf, strlen(buf)); in test_invalid_header_content() 656 zassert_equal(parsed, strlen(buf), in test_invalid_header_content() 660 buflen = strlen(buf); in test_invalid_header_content() 698 parsed = http_parser_execute(&parser, &settings_null, buf, strlen(buf)); in test_invalid_header_field() 701 zassert_equal(parsed, strlen(buf), in test_invalid_header_field() 704 buflen = strlen(buf); in test_invalid_header_field() [all …]
|
/Zephyr-latest/tests/subsys/logging/log_custom_header/src/ |
D | log_custom_header.c | 58 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/lib/posix/options/ |
D | env.c | 73 nsize = (name == NULL) ? 0 : strlen(name); in getenv() 94 nsize = (name == NULL) ? 0 : strlen(name); in getenv_r() 104 vsize = strlen(val) + 1; in getenv_r() 127 const size_t vsize = (val == NULL) ? 0 : strlen(val); in setenv() 128 const size_t nsize = (name == NULL) ? 0 : strlen(name); in setenv() 147 esize = strlen(environ[ret]) + 1; in setenv() 214 nsize = (name == NULL) ? 0 : strlen(name); in unsetenv() 225 allocated -= strlen(environ[ret]) + 1; in unsetenv() 226 LOG_DBG("free %zu bytes (allocated: %zu)", strlen(environ[ret]) + 1, in unsetenv()
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/fs_mgmt_hash_supported/src/ |
D | main.c | 106 zassert_equal(key.len, strlen("types"), in ZTEST() 108 zassert_mem_equal(key.value, "types", strlen("types"), in ZTEST() 122 strlen(expected_types[entry].name))) == 0) { in ZTEST() 146 if (memcmp(key.value, "format", strlen("format")) == 0) { in ZTEST() 151 } else if (memcmp(key.value, "size", strlen("size")) == 0) { in ZTEST()
|
/Zephyr-latest/tests/subsys/logging/log_syst/src/ |
D | mock_backend.c | 72 zassert_mem_equal(raw_data_str, output_str, strlen(raw_data_str), in validate_msg() 75 output_str += strlen(raw_data_str); in validate_msg() 80 strlen(syst_format_headers[i]), in validate_msg() 102 zassert_mem_equal(output_str, payload, strlen(payload), in validate_msg()
|
/Zephyr-latest/subsys/net/lib/dns/ |
D | dns_cache.c | 36 if (strlen(query) >= CONFIG_DNS_RESOLVER_MAX_QUERY_LEN) { in dns_cache_add() 39 strlen(query)); in dns_cache_add() 78 if (strlen(query) >= CONFIG_DNS_RESOLVER_MAX_QUERY_LEN) { in dns_cache_remove() 81 strlen(query)); in dns_cache_remove() 109 if (strlen(query) >= CONFIG_DNS_RESOLVER_MAX_QUERY_LEN) { in dns_cache_find() 112 strlen(query)); in dns_cache_find()
|
/Zephyr-latest/tests/subsys/shell/shell_backend_uart/src/ |
D | main.c | 66 strlen("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/net/lib/lwm2m/content_json/src/ |
D | main.c | 131 memcpy(test_msg.msg_data + 1, payload, strlen(payload)); in test_payload_set() 132 test_msg.cpkt.offset = strlen(payload) + 1; in test_payload_set() 181 strlen(expected_payload[i]), in ZTEST() 184 offset += strlen(expected_payload[i]); in ZTEST() 223 strlen(expected_payload[i]), in ZTEST() 226 offset += strlen(expected_payload[i]); in ZTEST() 265 strlen(expected_payload[i]), in ZTEST() 268 offset += strlen(expected_payload[i]); in ZTEST() 307 strlen(expected_payload[i]), in ZTEST() 310 offset += strlen(expected_payload[i]); in ZTEST() [all …]
|
/Zephyr-latest/samples/net/wifi/apsta_mode/src/ |
D | main.c | 122 ap_config.ssid_length = strlen(WIFI_AP_SSID); in enable_ap_mode() 124 ap_config.psk_length = strlen(WIFI_AP_PSK); in enable_ap_mode() 128 if (strlen(WIFI_AP_PSK) == 0) { in enable_ap_mode() 154 sta_config.ssid_length = strlen(WIFI_SSID); in connect_to_wifi() 156 sta_config.psk_length = strlen(WIFI_PSK); in connect_to_wifi()
|
/Zephyr-latest/samples/sensor/th02/src/ |
D | main.c | 77 glcd_print(glcd, row, strlen(row)); in main() 80 glcd_cursor_pos_set(glcd, 17 - strlen(row), 0); in main() 83 glcd_print(glcd, row, strlen(row)); in main()
|
/Zephyr-latest/tests/net/lib/wifi_credentials_backend_settings/src/ |
D | main.c | 53 .ssid_len = strlen(SSID1), 59 .password_len = strlen(PSK1), 65 .ssid_len = strlen(SSID2), 90 zassert_true(strlen(name) < MAX_KEY_LEN, "Name length exceeds MAX_KEY_LEN"); in custom_settings_save_one() 94 if (strlen(fake_settings_buf_keys[i]) == 0 || in custom_settings_save_one() 107 zassert_true(strlen(name) < MAX_KEY_LEN, "Name length exceeds MAX_KEY_LEN"); in custom_settings_delete() 122 size_t subtree_len = strlen(subtree); in custom_settings_load_subtree_direct()
|
/Zephyr-latest/subsys/testsuite/ztest/src/ |
D | ztest_posix.c | 61 if (cwd && strlen(file) > strlen(cwd) && !strncmp(file, cwd, strlen(cwd))) { in ztest_relative_filename() 62 return file + strlen(cwd) + 1; /* move past the trailing '/' */ in ztest_relative_filename()
|
/Zephyr-latest/tests/subsys/dsp/print_format/src/ |
D | main.c | 12 zexpect_equal(strlen(expected), strlen(actual), "Expected %d(%s), got %d(%s)", \ 13 strlen(expected), expected, strlen(actual), actual); \ 14 zexpect_mem_equal(expected, actual, MIN(strlen(expected), strlen(actual)), \
|
/Zephyr-latest/tests/drivers/console_switching/src/ |
D | main.c | 58 zassert_equal(ret[1], strlen(text[j]), "Only wrote %zu/%zu bytes of '%s'", in ZTEST() 59 ret[1], strlen(text[j]), text[j]); in ZTEST() 83 ret[1] = uart_emul_put_rx_data(devs[j], (uint8_t *)text[j], strlen(text[j])); in ZTEST() 94 zassert_equal(ret[1], strlen(text[j]), "Only put %zu/%zu bytes of '%s'", in ZTEST() 95 ret[1], strlen(text[j]), text[j]); in ZTEST()
|
/Zephyr-latest/tests/bluetooth/smp/src/ |
D | main.c | 31 "(unknown)", strlen("(unknown)")); in ZTEST() 33 "(unknown)", strlen("(unknown)")); in ZTEST()
|
/Zephyr-latest/tests/subsys/logging/log_backend_uart/src/ |
D | main.c | 70 zassert_equal(tx_len, strlen(TEST_DATA), in ZTEST_F() 72 i, strlen(TEST_DATA), tx_len); in ZTEST_F() 73 zassert_mem_equal(tx_content, TEST_DATA, strlen(TEST_DATA)); in ZTEST_F()
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_server_ws.c | 50 key_len = strlen(key_accept); in handle_http1_to_websocket_upgrade() 73 ret = http_server_sendall(client, tmp, strlen(tmp)); in handle_http1_to_websocket_upgrade() 85 ret = http_server_sendall(client, tmp, strlen(tmp)); in handle_http1_to_websocket_upgrade()
|