zephyr/samples/nanokernel/test
Benjamin Walsh 2b429de7f3 test_fifo: test timeout APIs
Test the nano_xxx_fifo_wait_timeout() APIs.

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

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

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

NOTE: The timeout APIs test is contained within its own file so that it
is easily reusable by a microkernel test that verifies that nano
timeouts and microkernel timers can coexist.

Change-Id: I5aae2d89651914fb6c39d8d09a56c7fa54533453
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-02-05 20:14:22 -05:00
..
test_arm_m3_irq_vector_table Rename TIMO -> ZEPHYR 2016-02-05 20:14:16 -05:00
test_bluetooth Rename TIMO -> ZEPHYR 2016-02-05 20:14:16 -05:00
test_context test_context: add test for fiber delayed start and sleep 2016-02-05 20:14:22 -05:00
test_fifo test_fifo: test timeout APIs 2016-02-05 20:14:22 -05:00
test_fp_sharing Rename TIMO -> ZEPHYR 2016-02-05 20:14:16 -05:00
test_lifo test_lifo: test timeout APIs 2016-02-05 20:14:22 -05:00
test_sema test_sema: test timeout APIs 2016-02-05 20:14:22 -05:00
test_stack Rename TIMO -> ZEPHYR 2016-02-05 20:14:16 -05:00
test_stackprot Rename TIMO -> ZEPHYR 2016-02-05 20:14:16 -05:00
test_static_idt Rename TIMO -> ZEPHYR 2016-02-05 20:14:16 -05:00
test_timer Rename TIMO -> ZEPHYR 2016-02-05 20:14:16 -05:00
test_xip Rename TIMO -> ZEPHYR 2016-02-05 20:14:16 -05:00