Home
last modified time | relevance | path

Searched refs:zassert (Results 1 – 25 of 28) sorted by relevance

12

/Zephyr-Core-3.7.0/tests/drivers/mipi_dsi/api/src/
Dmain.c30 zassert(ret >= 0, "Failed to write", NULL); in ZTEST()
35 zassert(ret >= 0, "Failed to write", NULL); in ZTEST()
43 zassert(ret >= 0, "Failed to do a generic read", NULL); in ZTEST()
59 zassert(ret >= 0, "Failed to write", NULL); in ZTEST()
64 zassert(ret >= 0, "Failed to write", NULL); in ZTEST()
73 zassert(ret >= 0, "Failed to do a dcs read", NULL); in ZTEST()
/Zephyr-Core-3.7.0/tests/subsys/dfu/mcuboot/src/
Dmain.c48 zassert(boot_erase_img_bank(SLOT1_PARTITION_ID) == 0, in ZTEST()
54 zassert(temp == 0xFFFFFFFF, "pass", "fail"); in ZTEST()
78 zassert(boot_request_upgrade(false) == 0, "pass", "fail"); in ZTEST()
84 zassert(memcmp(expectation, readout, sizeof(expectation)) == 0, in ZTEST()
87 zassert(boot_erase_img_bank(SLOT1_PARTITION_ID) == 0, in ZTEST()
90 zassert(boot_request_upgrade(true) == 0, "pass", "fail"); in ZTEST()
96 zassert(memcmp(&expectation[2], &readout[2], sizeof(expectation) - in ZTEST()
119 zassert(boot_erase_img_bank(SLOT0_PARTITION_ID) == 0, in ZTEST()
137 zassert(ret == 0, "pass", "fail (%d)", ret); in ZTEST()
/Zephyr-Core-3.7.0/subsys/testsuite/ztest/include/zephyr/
Dztest_assert.h188 #define zassert(cond, default_msg, ...) \ macro
262 #define zassert_unreachable(...) zassert(0, "Reached unreachable code", ##__VA_ARGS__)
269 #define zassert_true(cond, ...) zassert(cond, #cond " is false", ##__VA_ARGS__)
276 #define zassert_false(cond, ...) zassert(!(cond), #cond " is true", ##__VA_ARGS__)
283 #define zassert_ok(cond, ...) zassert(!(cond), #cond " is non-zero", ##__VA_ARGS__)
290 #define zassert_not_ok(cond, ...) zassert(!!(cond), #cond " is zero", ##__VA_ARGS__)
297 #define zassert_is_null(ptr, ...) zassert((ptr) == NULL, #ptr " is not NULL", ##__VA_ARGS__)
304 #define zassert_not_null(ptr, ...) zassert((ptr) != NULL, #ptr " is NULL", ##__VA_ARGS__)
315 #define zassert_equal(a, b, ...) zassert((a) == (b), #a " not equal to " #b, ##__VA_ARGS__)
326 #define zassert_not_equal(a, b, ...) zassert((a) != (b), #a " equal to " #b, ##__VA_ARGS__)
[all …]
/Zephyr-Core-3.7.0/tests/subsys/dfu/img_util/src/
Dmain.c80 zassert(flash_img_bytes_written(&ctx) == 0, "pass", "fail"); in ZTEST()
91 zassert(flash_img_buffered_write(&ctx, data, 0, true) == 0, "pass", in ZTEST()
103 zassert(flash_area_read(fa, i, &temp, 1) == 0, "pass", "fail"); in ZTEST()
104 zassert(temp == k, "pass", "fail"); in ZTEST()
/Zephyr-Core-3.7.0/tests/crypto/crypto_hash/src/
Dmain.c144 zassert(0, "Crypto device is not ready"); in ZTEST_USER()
150 zassert(0, "Crypto device is not ready"); in ZTEST_USER()
/Zephyr-Core-3.7.0/tests/net/lib/lwm2m/block_transfer/src/
Dmain.c207 zassert(ret > 0, "block 1 option not set"); in ZTEST_F()
263 zassert(ret > 0, "block 1 option not set"); in ZTEST_F()
278 zassert(ret > 0, "block 1 option not set"); in ZTEST_F()
339 zassert(ret > 0, "block 1 option not set"); in ZTEST_F()
354 zassert(ret > 0, "block 1 option not set"); in ZTEST_F()
369 zassert(ret > 0, "block 1 option not set"); in ZTEST_F()
/Zephyr-Core-3.7.0/tests/cmake/snippets/src/
Dmain.c71 zassert(false, "Invalid test type"); in ZTEST()
128 zassert(false, "Invalid test type"); in ZTEST()
/Zephyr-Core-3.7.0/tests/subsys/modem/backends/uart/src/
Dmain.c195 zassert(ret > -1, "Failed to transmit data"); in ZTEST()
202 zassert(ret > -1, "Received data is corrupted"); in ZTEST()
/Zephyr-Core-3.7.0/tests/drivers/rtc/rtc_api_helpers/src/
Dtest_rtc_time_to_tm.c48 zassert(((struct tm *)&rtc_datetime) == datetime, "Incorrect typecast"); in ZTEST()
/Zephyr-Core-3.7.0/tests/unit/crc/
Dmain.c182 zassert(crc8_ccitt(CRC8_CCITT_INITIAL_VALUE, test0, in ZTEST()
184 zassert(crc8_ccitt(CRC8_CCITT_INITIAL_VALUE, test1, in ZTEST()
186 zassert(crc8_ccitt(CRC8_CCITT_INITIAL_VALUE, test2, in ZTEST()
/Zephyr-Core-3.7.0/tests/subsys/pm/power_states_api/src/
Dmain.c97 zassert(suspend_to_ram_count != 0, "Not suspended to ram"); in ZTEST()
/Zephyr-Core-3.7.0/tests/subsys/modem/modem_pipelink/src/
Dmain.c45 zassert(0, "invalid event"); in test_pipelink_callback()
/Zephyr-Core-3.7.0/tests/posix/fs/src/
Dtest_fs_stat.c25 zassert(fh >= 0, "Failed creating test file"); in create_file()
/Zephyr-Core-3.7.0/tests/subsys/dfu/mcuboot_multi/src/
Dmain.c114 zassert(ret == 0, "pass", "fail (%d)", ret); in _test_write_confirm_n()
/Zephyr-Core-3.7.0/tests/drivers/i2s/i2s_speed/src/
Dtest_i2s_speed.c507 zassert(device_is_ready(dev_i2s_tx), "transfer device not ready"); in test_i2s_speed_configure()
515 zassert(device_is_ready(dev_i2s_rx), "receive device not ready"); in test_i2s_speed_configure()
530 zassert(device_is_ready(dev_i2s_rxtx), "receive device not ready"); in test_i2s_speed_rxtx_configure()
/Zephyr-Core-3.7.0/tests/net/lib/lwm2m/lwm2m_rd_client/src/
Dmain.c213 zassert(lwm2m_rd_client_ctx() == &ctx, ""); in ZTEST()
242 zassert(lwm2m_rd_client_ctx() == &ctx, ""); in ZTEST()
261 zassert(lwm2m_rd_client_ctx() == &ctx, ""); in ZTEST()
265 zassert(lwm2m_rd_client_timeout(&ctx) == 0, ""); in ZTEST()
/Zephyr-Core-3.7.0/tests/subsys/modem/modem_chat/src/
Dmain.c272 zassert(modem_chat_init(&cmd, &cmd_config) == 0, "Failed to init modem CMD"); in test_modem_chat_setup()
283 zassert(modem_pipe_open(mock_pipe, K_SECONDS(10)) == 0, "Failed to open mock pipe"); in test_modem_chat_setup()
284 zassert(modem_chat_attach(&cmd, mock_pipe) == 0, "Failed to attach pipe mock to modem CMD"); in test_modem_chat_setup()
/Zephyr-Core-3.7.0/tests/posix/common/src/
Dsemaphore.c264 zassert(different_sem1 != sem1, ""); in ZTEST()
/Zephyr-Core-3.7.0/tests/subsys/fs/common/
Dtest_fs_open_flags.c89 zassert((ret == 0 || ret == -ENOENT), "Done", "Failed"); in ZUNLINK()
/Zephyr-Core-3.7.0/tests/unit/util/
Dmain.c826 zassert(strcmp(test_str, "€€€") != 0, "Failed to do invalid truncation"); in ZTEST()
827 zassert(strcmp(test_str, expected_result) != 0, "Failed to do invalid truncation"); in ZTEST()
/Zephyr-Core-3.7.0/tests/subsys/rtio/rtio_api/src/
Dtest_rtio_api.c595 zassert(idx == 0 || idx == 1, "idx should be 0 or 1"); in test_rtio_transaction_()
/Zephyr-Core-3.7.0/tests/net/checksum_offload/src/
Dmain.c107 zassert(offset + len <= sizeof(test_data_large), "Out of bound data"); in verify_test_data_large()
/Zephyr-Core-3.7.0/tests/net/socket/tcp/src/
Dmain.c338 zassert(recved > 0, "received bigger then 0", in tcp_server_block_thread()
423 zassert(send_bytes > 0, "send_bytes bigger then 0", in test_send_recv_large_common()
/Zephyr-Core-3.7.0/doc/releases/
Drelease-notes-1.13.rst685 * :github:`3666` - schedule_api test uses zassert without cleaning up properly
Drelease-notes-1.12.rst590 * :github:`7170` - zassert: Confusing rules and actual usage for messages in zassert_*() calls

12