zephyr/samples/nanokernel
Benjamin Walsh 76103ecc2b test_sema: test timeout APIs
Test the nano_xxx_sem_wait_timeout() APIs.

First, the task waits with a timeout and times out. Then it wait with a
timeout, but gets the semaphore in time.

Then, multiple timeout tests are done for the fibers, to test the
ordering of queueing/dequeueing when timeout occurs, first on one
semaphore, then on multiple semaphores.

Finally, multiple fibers pend on one semaphore, and they all get the
semaphore in time, except the last one: this tests that the timeout is
recomputed correctly when timeouts are aborted.

Change-Id: I73c174e6f15f38377a14573cb7f531e5e6ca4c07
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-02-05 20:14:22 -05:00
..
apps Rename TIMO -> ZEPHYR 2016-02-05 20:14:16 -05:00
benchmark Cosmetic changes to sys_kernel output 2016-02-05 20:14:19 -05:00
test test_sema: test timeout APIs 2016-02-05 20:14:22 -05:00