forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 c5d85e1. I also added the corresponding `zassume_nok` and `zexpect_nok`. Signed-off-by: Greter Raffael <[email protected]>
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters