Home
last modified time | relevance | path

Searched full:expected (Results 1 – 25 of 1343) sorted by relevance

12345678910>>...54

/Zephyr-latest/tests/drivers/mm/sys_mm_drv_bank/src/
Dmain.c12 #define EXPECTED(x) ((x) * CONFIG_MM_DRV_PAGE_SIZE) macro
18 struct sys_memory_stats *expected) in test_stats() argument
20 zassert_equal(stats->free_bytes, expected->free_bytes, in test_stats()
22 stats->free_bytes, expected->free_bytes); in test_stats()
23 zassert_equal(stats->allocated_bytes, expected->allocated_bytes, in test_stats()
25 stats->allocated_bytes, expected->allocated_bytes); in test_stats()
26 zassert_equal(stats->max_allocated_bytes, expected->max_allocated_bytes, in test_stats()
29 expected->max_allocated_bytes); in test_stats()
35 struct sys_memory_stats expected; in ZTEST() local
39 /* Verify that the initialization routine works as expected. */ in ZTEST()
[all …]
/Zephyr-latest/tests/net/socket/can/src/
Dmain.c21 struct can_frame expected = { 0 }; in ZTEST() local
30 expected.flags = CAN_FRAME_IDE; in ZTEST()
31 expected.id = 1234U; in ZTEST()
32 expected.dlc = can_bytes_to_dlc(sizeof(data)); in ZTEST()
33 memcpy(expected.data, data, sizeof(data)); in ZTEST()
39 LOG_HEXDUMP_DBG((const uint8_t *)&expected, sizeof(expected), "expected"); in ZTEST()
41 zassert_equal(zframe.flags, expected.flags, "Flags not equal"); in ZTEST()
42 zassert_equal(zframe.id, expected.id, "CAN id invalid"); in ZTEST()
43 zassert_equal(zframe.dlc, expected.dlc, "Msg length invalid"); in ZTEST()
44 zassert_mem_equal(&zframe.data, &expected.data, can_dlc_to_bytes(expected.dlc), in ZTEST()
[all …]
/Zephyr-latest/tests/bluetooth/gap/src/
Dmain.c23 /* Round down expected from 20.625 */ in ZTEST()
25 /* Round down expected from 21.250 */ in ZTEST()
33 /* Round down expected from 6.25 */ in ZTEST()
35 /* Round down expected from 7.50 */ in ZTEST()
43 /* Round down expected from 11.25 */ in ZTEST()
45 /* Round down expected from 12.50 */ in ZTEST()
49 /* Round down expected from 33.60 */ in ZTEST()
51 /* Round down expected from 35.20 */ in ZTEST()
55 /* Round down expected from 33.60 */ in ZTEST()
57 /* Round down expected from 35.20 */ in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/smp_reassembly/src/
Dmain.c39 int expected; in ZTEST() local
44 "Expected -ENOSR error"); in ZTEST()
45 /* Len not enough to read expected size from header */ in ZTEST()
48 "Expected -ENODATA error"); in ZTEST()
53 "Expected -ENOSR error"); in ZTEST()
58 expected = TEST_FRAME_SIZE - frag_used; in ZTEST()
60 zassert_equal(expected, ret, in ZTEST()
61 "Expected is %d should be %d\n", ret, expected); in ZTEST()
63 /* Force complete it, expected returned number of bytes missing */ in ZTEST()
65 zassert_equal(expected, ret, in ZTEST()
[all …]
/Zephyr-latest/tests/bluetooth/host/id/mocks/
Dhci_core_expects.h10 * Validate expected behaviour when bt_unpair() is called
12 * Expected behaviour:
18 * Validate expected behaviour when bt_unpair() isn't called
20 * Expected behaviour:
26 * Validate expected behaviour when bt_hci_cmd_create() is called
28 * Expected behaviour:
34 * Validate expected behaviour when bt_hci_cmd_create() isn't called
36 * Expected behaviour:
42 * Validate expected behaviour when bt_hci_cmd_send_sync() is called
44 * Expected behaviour:
[all …]
Dsmp_expects.h10 * Validate expected behaviour when bt_smp_le_oob_generate_sc_data() is called
12 * Expected behaviour:
18 * Validate expected behaviour when bt_smp_le_oob_generate_sc_data() isn't called
20 * Expected behaviour:
26 * Validate expected behaviour when bt_smp_le_oob_set_tk() is called
28 * Expected behaviour:
34 * Validate expected behaviour when bt_smp_le_oob_set_sc_data() is called
36 * Expected behaviour:
44 * Validate expected behaviour when bt_smp_le_oob_get_sc_data() is called
46 * Expected behaviour:
Dsettings_expects.h10 * Validate expected behaviour when bt_settings_store_id() is called
12 * Expected behaviour:
18 * Validate expected behaviour when bt_settings_store_id() isn't called
20 * Expected behaviour:
26 * Validate expected behaviour when bt_settings_store_irk() is called
28 * Expected behaviour:
34 * Validate expected behaviour when bt_settings_store_irk) isn't called
36 * Expected behaviour:
Dadv_expects.h10 * Validate expected behaviour when bt_le_adv_lookup_legacy() is called
12 * Expected behaviour:
18 * Validate expected behaviour when bt_le_adv_lookup_legacy() isn't called
20 * Expected behaviour:
26 * Validate expected behaviour when bt_le_ext_adv_foreach() is called
28 * Expected behaviour:
34 * Validate expected behaviour when bt_le_ext_adv_foreach() isn't called
36 * Expected behaviour:
Dkeys_expects.h10 * Validate expected behaviour when bt_keys_find_irk() is called
12 * Expected behaviour:
18 * Validate expected behaviour when bt_keys_find_irk() isn't called
20 * Expected behaviour:
26 * Validate expected behaviour when bt_keys_foreach_type() is called
28 * Expected behaviour:
34 * Validate expected behaviour when bt_keys_foreach_type() isn't called
36 * Expected behaviour:
Dnet_buf_expects.h10 * Validate expected behaviour when net_buf_unref() is called
12 * Expected behaviour:
18 * Validate expected behaviour when net_buf_unref() isn't called
20 * Expected behaviour:
26 * Validate expected behaviour when net_buf_simple_add() is called
28 * Expected behaviour:
34 * Validate expected behaviour when net_buf_simple_add() isn't called
36 * Expected behaviour:
Dconn_expects.h10 * Validate expected behaviour when bt_conn_lookup_state_le() is called
12 * Expected behaviour:
19 * Validate expected behaviour when bt_conn_lookup_state_le() isn't called
21 * Expected behaviour:
27 * Validate expected behaviour when bt_conn_unref() is called
29 * Expected behaviour:
35 * Validate expected behaviour when bt_conn_unref() isn't called
37 * Expected behaviour:
/Zephyr-latest/tests/lib/c_lib/strerror/src/
Dmain.c14 const char *expected; in ZTEST() local
19 expected = ""; in ZTEST()
22 expected = "Invalid argument"; in ZTEST()
25 zassert_equal(0, strcmp(expected, actual), in ZTEST()
26 "mismatch: exp: %s act: %s", expected, actual); in ZTEST()
34 expected = ""; in ZTEST()
36 zassert_equal(0, strcmp(expected, actual), "mismatch: exp: %s act: %s", in ZTEST()
37 expected, actual); in ZTEST()
39 zassert_equal(0, strcmp(expected, actual), "mismatch: exp: %s act: %s", in ZTEST()
40 expected, actual); in ZTEST()
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/
Dsmp_reassembly.c21 smpt->__reassembly.expected = 0; in smp_reassembly_init()
30 return smpt->__reassembly.expected; in smp_reassembly_expected()
41 uint16_t expected = sys_be16_to_cpu(((struct smp_hdr *)buf)->nh_len); in smp_reassembly_collect() local
46 * expected bytes. in smp_reassembly_collect()
48 expected += sizeof(struct smp_hdr); in smp_reassembly_collect()
52 expected > MCUMGR_TRANSPORT_NETBUF_SIZE) { in smp_reassembly_collect()
56 if (len > expected) { in smp_reassembly_collect()
62 smpt->__reassembly.expected = expected; in smp_reassembly_collect()
72 /* len is expected to be > 0 */ in smp_reassembly_collect()
73 if (smpt->__reassembly.expected >= len) { in smp_reassembly_collect()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/mesh/tests_scripts/blob_mdls/
Dblob_srv_persistence.sh15 blob_cli_stop -flash_erase blob_srv_stop -flash_erase -- -argstest expected-phase=1
19 blob_cli_stop blob_srv_stop -- -argstest expected-phase=2
23 blob_cli_stop blob_srv_stop -- -argstest expected-phase=3
27 blob_cli_stop -flash_rm blob_srv_stop -flash_rm -- -argstest expected-phase=4
32 blob_cli_stop -flash_erase blob_srv_stop -flash_erase -- -argstest expected-phase=5
36 blob_cli_stop -flash_rm blob_srv_stop -flash_rm -- -argstest expected-phase=4
41 blob_cli_stop -flash_erase blob_srv_stop -flash_erase -- -argstest expected-phase=1
45 blob_cli_stop blob_srv_stop -- -argstest expected-phase=2
49 blob_cli_stop blob_srv_stop -- -argstest expected-phase=3
53 blob_cli_stop -flash_rm blob_srv_stop -flash_rm -- -argstest expected-phase=4
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/mcumgr_client/src/
Dmain.c41 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
44 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", in ZTEST()
46 zassert_equal(MGMT_ERR_ETIMEOUT, response.status, "Expected to receive %d response %d\n", in ZTEST()
49 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
51 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
54 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", in ZTEST()
56 zassert_equal(MGMT_ERR_ETIMEOUT, response.status, "Expected to receive %d response %d", in ZTEST()
64 zassert_equal(MGMT_ERR_EINVAL, rc, "Expected to receive %d response %d", MGMT_ERR_EINVAL, in ZTEST()
66 zassert_equal(MGMT_ERR_EINVAL, response.status, "Expected to receive %d response %d", in ZTEST()
69 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d\n", MGMT_ERR_EOK, rc); in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/fs/fs_api/src/
Dtest_fs_mount_flags.c29 zassert_equal(ret, 0, "Expected success (%d)", ret); in test_mount_flags()
32 zassert_equal(ret, 0, "Expected success fs_open(FS_O_CREATE) (%d)", in test_mount_flags()
35 zassert_equal(ret, 0, "Expected fs_close success (%d)", ret); in test_mount_flags()
38 zassert_equal(ret, 0, "Expected fs_mkdir success (%d)", ret); in test_mount_flags()
40 zassert_equal(ret, 0, "Expected fs_umount success (%d)", ret); in test_mount_flags()
46 zassert_equal(ret, 0, "Expected fs_mount success (%d)", ret); in test_mount_flags()
50 zassert_equal(ret, -EROFS, "Expected EROFS got %d", ret); in test_mount_flags()
52 zassert_equal(ret, -EROFS, "Expected EROFS got %d", ret); in test_mount_flags()
54 zassert_equal(ret, -EROFS, "Expected EROFS got %d", ret); in test_mount_flags()
56 zassert_equal(ret, -EROFS, "Expected EROFS got %d", ret); in test_mount_flags()
[all …]
/Zephyr-latest/tests/kernel/obj_core/obj_core_stats/src/
Dmain.c76 zassert_equal(status, 0, "Expected 0, got %d\n", status); in ZTEST()
87 zassert_equal(status, 0, "Expected 0, got %d on CPU %u\n", in ZTEST()
101 zassert_equal(status, 0, "Expected 0, got %d\n", status); in ZTEST()
108 zassert_equal(status, 0, "Expected 0, got %d on CPU %u\n", in ZTEST()
147 "Expected %d, got %d on CPU%d\n", in ZTEST()
159 "Expected %d, got %d on CPU%d\n", in ZTEST()
171 "Expected %d, got %d on CPU%d\n", in ZTEST()
181 zassert_equal(status, -ENOTSUP, "Expected %d, got %d\n", in ZTEST()
190 zassert_equal(status, -ENOTSUP, "Expected %d, got %d\n", in ZTEST()
199 zassert_equal(status, -ENOTSUP, "Expected %d, got %d\n", in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/fs/common/
Dtest_fs_mkfs.c29 zassert_equal(ret, -EFAULT, "Expected EFAULT got %d", ret); in test_fs_mkfs_simple()
31 zassert_equal(ret, -ENODEV, "Expected ENODEV got %d", ret); in test_fs_mkfs_simple()
36 zassert_equal(ret, 0, "Expected successful mkfs (%d)", ret); in test_fs_mkfs_simple()
41 zassert_equal(ret, 0, "Expected successful mount (%d)", ret); in test_fs_mkfs_simple()
43 zassert_equal(ret, 0, "Expected fs_unmount success (%d)", ret); in test_fs_mkfs_simple()
61 zassert_equal(ret, 0, "Expected success (%d)", ret); in test_fs_mkfs_ops()
64 zassert_equal(ret, 0, "Expected success fs_open(FS_O_CREATE) (%d)", in test_fs_mkfs_ops()
67 zassert_equal(ret, 0, "Expected fs_close success (%d)", ret); in test_fs_mkfs_ops()
70 zassert_equal(ret, 0, "Expected fs_mkdir success (%d)", ret); in test_fs_mkfs_ops()
72 zassert_equal(ret, 0, "Expected fs_umount success (%d)", ret); in test_fs_mkfs_ops()
[all …]
Dtest_fs_mount_flags.c28 zassert_false(ret == 0, "Expected failure", ret); in test_fs_mount_flags()
34 zassert_false(ret == 0, "Expected failure", ret); in test_fs_mount_flags()
40 zassert_equal(ret, 0, "Expected success", ret); in test_fs_mount_flags()
43 zassert_equal(ret, 0, "Expected success", ret); in test_fs_mount_flags()
47 zassert_equal(ret, 0, "Expected success", ret); in test_fs_mount_flags()
50 zassert_equal(ret, 0, "Expected success", ret); in test_fs_mount_flags()
56 zassert_equal(ret, 0, "Expected success", ret); in test_fs_mount_flags()
60 zassert_equal(ret, -EROFS, "Expected EROFS", ret); in test_fs_mount_flags()
62 zassert_equal(ret, -EROFS, "Expected EROFS", ret); in test_fs_mount_flags()
64 zassert_equal(ret, -EROFS, "Expected EROFS", ret); in test_fs_mount_flags()
[all …]
/Zephyr-latest/tests/kernel/threads/thread_init/src/
Dmain.c60 } expected; variable
68 zassert_true(t_delay >= expected.init_delay, in thread_entry()
76 zassert_equal(k_thread_priority_get(tid), expected.init_prio); in thread_entry()
77 zassert_equal(p1, expected.init_p1); in thread_entry()
78 zassert_equal(p2, expected.init_p2); in thread_entry()
79 zassert_equal(p3, expected.init_p3); in thread_entry()
101 expected.init_p1 = INIT_PREEMPT_P1; in ZTEST_USER()
102 expected.init_p2 = INIT_PREEMPT_P2; in ZTEST_USER()
103 expected.init_p3 = INIT_PREEMPT_P3_static; in ZTEST_USER()
104 expected.init_prio = INIT_PREEMPT_PRIO; in ZTEST_USER()
[all …]
/Zephyr-latest/tests/boot/mcuboot_data_sharing/src/
Dmain.c31 zassert_equal(rc, sizeof(var), "Expected data length mismatch"); in ZTEST()
32 zassert_equal(var[0], MCUBOOT_MODE_SWAP_USING_MOVE, "Expected data mismatch"); in ZTEST()
42 zassert_equal(rc, sizeof(var), "Expected data length mismatch"); in ZTEST()
43 zassert_equal(var[0], MCUBOOT_SIGNATURE_TYPE_RSA, "Expected data mismatch"); in ZTEST()
53 zassert_equal(rc, sizeof(var), "Expected data length mismatch"); in ZTEST()
54 zassert_equal(var[0], MCUBOOT_RECOVERY_MODE_NONE, "Expected data mismatch"); in ZTEST()
64 zassert_equal(rc, sizeof(var), "Expected data length mismatch"); in ZTEST()
65 zassert_equal(var[0], RUNNING_SLOT, "Expected data mismatch"); in ZTEST()
76 zassert_equal(rc, sizeof(var), "Expected data length mismatch"); in ZTEST()
79 "Expected version (major) mismatch"); in ZTEST()
[all …]
/Zephyr-latest/tests/drivers/clock_control/stm32_clock_configuration/stm32h5_core/src/
Dtest_stm32_clock_configuration.c21 "Expected hclk_freq: %d. Actual hclk_freq: %d", in ZTEST()
31 "Expected sysclk src: PLL1 (0x%x). Actual: 0x%x", in ZTEST()
35 "Expected sysclk src: HSE (0x%x). Actual: 0x%x", in ZTEST()
39 "Expected sysclk src: HSI (0x%x). Actual: 0x%x", in ZTEST()
43 "Expected sysclk src: MSI (0x%x). Actual: 0x%x", in ZTEST()
46 /* Case not expected */ in ZTEST()
51 "Not expected. sys_clk_src: %d\n", sys_clk_src); in ZTEST()
62 "Expected PLL src: HSE. Actual PLL src: %d", in ZTEST()
66 "Expected PLL src: HSI. Actual PLL src: %d", in ZTEST()
70 "Expected PLL src: CSI. Actual PLL src: %d", in ZTEST()
[all …]
/Zephyr-latest/tests/drivers/clock_control/stm32_clock_configuration/stm32u5_core/src/
Dtest_stm32_clock_configuration.c21 "Expected hclk_freq: %d. Actual hclk_freq: %d", in ZTEST()
31 "Expected sysclk src: PLL1 (0x%x). Actual: 0x%x", in ZTEST()
35 "Expected sysclk src: HSE (0x%x). Actual: 0x%x", in ZTEST()
39 "Expected sysclk src: HSI (0x%x). Actual: 0x%x", in ZTEST()
43 "Expected sysclk src: MSI (0x%x). Actual: 0x%x", in ZTEST()
46 /* Case not expected */ in ZTEST()
51 "Not expected. sys_clk_src: %d\n", sys_clk_src); in ZTEST()
62 "Expected PLL src: HSE. Actual PLL src: %d", in ZTEST()
66 "Expected PLL src: HSI. Actual PLL src: %d", in ZTEST()
70 "Expected PLL src: MSI. Actual PLL src: %d", in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/dsp/utils/src/
Df32.c32 const DSP_DATA q31_t expected) in test_shift_f32_to_q7() argument
36 zassert_equal(shifted_data, expected, in test_shift_f32_to_q7()
37 "Conversion failed: %f shifted by %d = %d (expected %d)", (double)data, shift, in test_shift_f32_to_q7()
38 shifted_data, expected); in test_shift_f32_to_q7()
42 const DSP_DATA q31_t expected) in test_shift_f32_to_q15() argument
46 zassert_equal(shifted_data, expected, in test_shift_f32_to_q15()
47 "Conversion failed: %f shifted by %d = %d (expected %d)", (double)data, shift, in test_shift_f32_to_q15()
48 shifted_data, expected); in test_shift_f32_to_q15()
52 const DSP_DATA q31_t expected) in test_shift_f32_to_q31() argument
56 zassert_equal(shifted_data, expected, in test_shift_f32_to_q31()
[all …]
Df64.c31 const DSP_DATA q7_t expected) in test_shift_f64_to_q7() argument
35 zassert_equal(shifted_data, expected, in test_shift_f64_to_q7()
36 "Conversion failed: %f shifted by %d = %d (expected %d)", data, shift, in test_shift_f64_to_q7()
37 shifted_data, expected); in test_shift_f64_to_q7()
41 const DSP_DATA q15_t expected) in test_shift_f64_to_q15() argument
45 zassert_equal(shifted_data, expected, in test_shift_f64_to_q15()
46 "Conversion failed: %f shifted by %d = %d (expected %d)", (double)data, shift, in test_shift_f64_to_q15()
47 shifted_data, expected); in test_shift_f64_to_q15()
51 const DSP_DATA q31_t expected) in test_shift_f64_to_q31() argument
55 zassert_equal(shifted_data, expected, in test_shift_f64_to_q31()
[all …]

12345678910>>...54