Home
last modified time | relevance | path

Searched refs:exp_len (Results 1 – 10 of 10) sorted by relevance

/Zephyr-latest/tests/subsys/logging/log_msg/src/
Dmain.c355 static void get_msg_validate_length(uint32_t exp_len) in get_msg_validate_length() argument
363 zassert_equal(len, exp_len, "Unexpected message length %d (exp:%d)", in get_msg_validate_length()
364 len, exp_len); in get_msg_validate_length()
374 uint32_t exp_len; in ZTEST() local
393 exp_len = offsetof(struct log_msg, data) + in ZTEST()
396 exp_len = ROUND_UP(exp_len, Z_LOG_MSG_ALIGNMENT) / sizeof(int); in ZTEST()
397 get_msg_validate_length(exp_len); in ZTEST()
398 get_msg_validate_length(exp_len); in ZTEST()
406 uint32_t exp_len; in ZTEST() local
424 exp_len = offsetof(struct log_msg, data) + sizeof(data); in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/debug/cs_trace_defmt/src/
Dmain.c10 static size_t exp_len[3]; variable
17 zassert_equal(len, exp_len[cb_cnt], NULL); in callback()
64 exp_len[0] = 14; in ZTEST()
85 exp_len[0] = sizeof(exp_data1); in ZTEST()
88 exp_len[1] = sizeof(exp_data2); in ZTEST()
91 exp_len[2] = sizeof(exp_data3); in ZTEST()
/Zephyr-latest/tests/crypto/tinycrypt/src/
Dctr_prng.c295 int exp_len; in test_prng_vector() local
302 exp_len = strlen(v->expected) / 2; in test_prng_vector()
327 rc = tc_ctr_prng_generate(&ctx, extra1, extra1_len, output, exp_len); in test_prng_vector()
332 rc = tc_ctr_prng_generate(&ctx, extra2, extra2_len, output, exp_len); in test_prng_vector()
337 rc = memcmp(output, expected, exp_len); in test_prng_vector()
/Zephyr-latest/tests/subsys/shell/shell_history/src/
Dshell_history_test.c31 static void test_get(bool ok, bool up, uint8_t *exp_buf, uint16_t exp_len) in test_get() argument
44 zassert_equal(out_len, exp_len, "Unexpected entry length.\n"); in test_get()
/Zephyr-latest/tests/subsys/logging/log_frontend_stmesp_demux/src/
Dmain.c37 static void claim_packet(uint16_t exp_m_idx, uint64_t exp_ts, uint16_t exp_len, uint8_t exp_id, in claim_packet() argument
43 zassert_equal(exp_len, 0, "%d: Expected a packet", line); in claim_packet()
52 zassert_equal(exp_len, packet.log->hdr.total_len, "%d: Unexpected len:%d (exp:%d)", line, in claim_packet()
53 packet.log->hdr.total_len, exp_len); in claim_packet()
54 for (int i = 0; i < exp_len; i++) { in claim_packet()
/Zephyr-latest/subsys/settings/src/
Dsettings_line.c329 size_t len_read, exp_len; in settings_line_cmp() local
340 len_read = exp_len = MIN(sizeof(buf), rem); in settings_line_cmp()
347 if (len_read != exp_len) { in settings_line_cmp()
/Zephyr-latest/subsys/mgmt/osdp/src/
Dosdp_phy.c110 int exp_len, id, scb_len = 0, mark_byte_len = 0; in osdp_phy_packet_init() local
113 exp_len = sizeof(struct osdp_packet_header) + 64; /* 64 is estimated */ in osdp_phy_packet_init()
114 if (max_len < exp_len) { in osdp_phy_packet_init()
/Zephyr-latest/tests/lib/cbprintf_package/src/
Dmain.c272 int exp_len = len + (int)strlen(test_str) + 1 + (int)strlen(test_str1) + 1; in ZTEST() local
274 zassert_equal(exp_len, fsc_len); in ZTEST()
746 int exp_len = slen + (int)strlen(test_str1) + 1 - 1 - (keep_ro_str ? 1 : 2); in cbprintf_rw_loc_const_char_ptr() local
749 zassert_equal(clen, exp_len, "clen:%d exp_len:%d", clen, exp_len); in cbprintf_rw_loc_const_char_ptr()
/Zephyr-latest/tests/lib/spsc_pbuf/src/
Dmain.c333 uint16_t exp_len = capacity - TLEN(len1) - HDR_LEN; in ZTEST() local
335 PACKET_WRITE(pb, capacity, 0, 2, exp_len); in ZTEST()
/Zephyr-latest/tests/unit/cbprintf/
Dmain.c1286 int exp_len = len + (int)strlen(test_str) + 1 + (int)strlen(test_str1) + 1; in ZTEST() local
1288 zassert_equal(exp_len, fsc_len); in ZTEST()