zephyr/tests/ztest
Stephen Smalley 083fdf352b tests/ztest: Add ztest_test_pass()
ztest provides a ztest_test_fail() interface to fail the currently
running test, but does not provide an equivalent ztest_test_pass().
Normally a test passes just by returning without an assertion failure
or other call to ztest_test_fail().  However, if the correct behavior
for a test is to trigger a fatal fault (as with tests/kernel/fatal or
protection or MPU tests), then we need a way for the test to pass the
currently running test before aborting the current thread.
Otherwise, ztest hangs forever in run_test() on the
k_sem_take(&test_end_signal, K_FOREVER) call.  Add
a ztest_test_pass() interface and implement it for kernel and
userspace variants of ztest.  This interface will be used in the
protection tests.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2017-06-21 21:52:50 -04:00
..
include tests/ztest: Add ztest_test_pass() 2017-06-21 21:52:50 -04:00
src tests/ztest: Add ztest_test_pass() 2017-06-21 21:52:50 -04:00
test tests: remove testcase.ini files 2017-06-21 20:56:53 -04:00
Kbuild
Kconfig ztest: use an aligned stack size 2017-01-24 23:42:41 +00:00
Makefile