/Zephyr-Core-3.4.0/tests/drivers/rtc/rtc_api_helpers/src/ |
D | test_rtc_time_to_tm.c | 13 zassert(offsetof(struct rtc_time, tm_sec) == offsetof(struct tm, tm_sec), in ZTEST() 16 zassert(offsetof(struct rtc_time, tm_min) == offsetof(struct tm, tm_min), in ZTEST() 19 zassert(offsetof(struct rtc_time, tm_hour) == offsetof(struct tm, tm_hour), in ZTEST() 22 zassert(offsetof(struct rtc_time, tm_mday) == offsetof(struct tm, tm_mday), in ZTEST() 25 zassert(offsetof(struct rtc_time, tm_mon) == offsetof(struct tm, tm_mon), in ZTEST() 28 zassert(offsetof(struct rtc_time, tm_year) == offsetof(struct tm, tm_year), in ZTEST() 31 zassert(offsetof(struct rtc_time, tm_wday) == offsetof(struct tm, tm_wday), in ZTEST() 34 zassert(offsetof(struct rtc_time, tm_yday) == offsetof(struct tm, tm_yday), in ZTEST() 37 zassert(offsetof(struct rtc_time, tm_isdst) == offsetof(struct tm, tm_isdst), in ZTEST() 48 zassert(((struct tm *)&rtc_datetime) == datetime, "Incorrect typecast"); in ZTEST()
|
/Zephyr-Core-3.4.0/tests/drivers/mipi_dsi/api/src/ |
D | main.c | 30 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.4.0/tests/subsys/dfu/mcuboot/src/ |
D | main.c | 48 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.4.0/subsys/testsuite/ztest/include/zephyr/ |
D | ztest_assert.h | 188 #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_is_null(ptr, ...) zassert((ptr) == NULL, #ptr " is not NULL", ##__VA_ARGS__) 297 #define zassert_not_null(ptr, ...) zassert((ptr) != NULL, #ptr " is NULL", ##__VA_ARGS__) 308 #define zassert_equal(a, b, ...) zassert((a) == (b), #a " not equal to " #b, ##__VA_ARGS__) 319 #define zassert_not_equal(a, b, ...) zassert((a) != (b), #a " equal to " #b, ##__VA_ARGS__) 331 zassert((void *)(a) == (void *)(b), #a " not equal to " #b, ##__VA_ARGS__) [all …]
|
/Zephyr-Core-3.4.0/tests/subsys/dfu/img_util/src/ |
D | main.c | 80 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.4.0/tests/cmake/snippets/src/ |
D | main.c | 71 zassert(false, "Invalid test type"); in ZTEST() 128 zassert(false, "Invalid test type"); in ZTEST()
|
/Zephyr-Core-3.4.0/tests/net/lib/lwm2m/block_transfer/src/ |
D | main.c | 206 zassert(ret > 0, "block 1 option not set"); in ZTEST_F() 262 zassert(ret > 0, "block 1 option not set"); in ZTEST_F() 277 zassert(ret > 0, "block 1 option not set"); in ZTEST_F() 338 zassert(ret > 0, "block 1 option not set"); in ZTEST_F() 353 zassert(ret > 0, "block 1 option not set"); in ZTEST_F() 368 zassert(ret > 0, "block 1 option not set"); in ZTEST_F()
|
/Zephyr-Core-3.4.0/tests/unit/crc/ |
D | main.c | 165 zassert(crc8_ccitt(CRC8_CCITT_INITIAL_VALUE, test0, in ZTEST() 167 zassert(crc8_ccitt(CRC8_CCITT_INITIAL_VALUE, test1, in ZTEST() 169 zassert(crc8_ccitt(CRC8_CCITT_INITIAL_VALUE, test2, in ZTEST()
|
/Zephyr-Core-3.4.0/tests/subsys/dfu/mcuboot_multi/src/ |
D | main.c | 114 zassert(ret == 0, "pass", "fail (%d)", ret); in _test_write_confirm_n()
|
/Zephyr-Core-3.4.0/tests/net/lib/lwm2m/lwm2m_rd_client/src/ |
D | main.c | 182 zassert(lwm2m_rd_client_ctx() == &ctx, ""); in ZTEST() 213 zassert(lwm2m_rd_client_ctx() == &ctx, ""); in ZTEST() 217 zassert(lwm2m_rd_client_timeout(&ctx) == 0, ""); in ZTEST()
|
/Zephyr-Core-3.4.0/tests/drivers/i2s/i2s_speed/src/ |
D | test_i2s_speed.c | 507 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.4.0/tests/subsys/fs/common/ |
D | test_fs_open_flags.c | 89 zassert((ret == 0 || ret == -ENOENT), "Done", "Failed"); in ZUNLINK()
|
/Zephyr-Core-3.4.0/tests/subsys/rtio/rtio_api/src/ |
D | test_rtio_api.c | 657 zassert(idx == 0 || idx == 1, "idx should be 0 or 1"); in test_rtio_transaction_()
|
/Zephyr-Core-3.4.0/tests/net/socket/tcp/src/ |
D | main.c | 320 zassert(recved > 0, "received bigger then 0", in tcp_server_block_thread() 405 zassert(send_bytes > 0, "send_bytes bigger then 0", in test_send_recv_large_common()
|
/Zephyr-Core-3.4.0/doc/releases/ |
D | release-notes-1.13.rst | 685 * :github:`3666` - schedule_api test uses zassert without cleaning up properly
|
D | release-notes-1.12.rst | 590 * :github:`7170` - zassert: Confusing rules and actual usage for messages in zassert_*() calls
|
D | release-notes-2.5.rst | 1891 * :github:`19138` - zassert prints to UART even when RTT is selected
|
D | release-notes-3.2.rst | 2106 * :github:`48665` - tests/usb/device: Add zassert to match zassume usage.
|
D | release-notes-2.6.rst | 2144 * :github:`21783` - rename zassert functions
|