You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a testcase with kernel configured to run in cooperative mode only, i.e. CONFIG_NUM_PREEMPT_PRIORITIES=0, the ztest framwork generates "ASSERTION FAIL" at runtime indicating invalid thread priority value.
To Reproduce
Run any testcase in cooperative mode only. E.g.
west build -b sam_e70_xplained -- -DCONFIG_ASSERT=y -DCONFIG_NUM_PREEMPT_PRIORITIES=0 tests/kernel/fifo/fifo_api/
ztest framework should work also in cooperative mode only.
Additional context
By default ztest thread is running at the priority -1. When the testcase is running in cooperative mode only the default ztest thread priority should be set to -2.
The text was updated successfully, but these errors were encountered:
Describe the bug
When running a testcase with kernel configured to run in cooperative mode only, i.e.
CONFIG_NUM_PREEMPT_PRIORITIES=0
, the ztest framwork generates "ASSERTION FAIL" at runtime indicating invalid thread priority value.To Reproduce
Run any testcase in cooperative mode only. E.g.
Logs and console output
Expected behavior
ztest framework should work also in cooperative mode only.
Additional context
By default ztest thread is running at the priority
-1
. When the testcase is running in cooperative mode only the default ztest thread priority should be set to-2
.The text was updated successfully, but these errors were encountered: