zephyr/tests/ztest
Greter Raffael 774858c6dc ztest: Add comfort functions for non-zero return codes
Many functions return non-zero return codes on errors. I added an assert
for the case, when a function is expected to fail. It is just a
shorthand for `zassert_not_equal(0, ret);`, analogous to
`zassert_ok`, introduced in c5d85e175f.

I also added the corresponding `zassume_nok` and `zexpect_nok`.

Signed-off-by: Greter Raffael <rgreter@baumer.com>
2023-11-04 07:39:46 -04:00
..
base ztest: Add comfort functions for non-zero return codes 2023-11-04 07:39:46 -04:00
busy_sim tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
error_hook syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
fail tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
summary tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
zexpect ztest: Add comfort functions for non-zero return codes 2023-11-04 07:39:46 -04:00
ztress tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00