zephyr/tests/kernel/test_lifo/src
Allan Stephens f0d6c033aa unified/test: Fix issues affecting LIFO object test application
Revises the test to account for changes in LIFO object behavior
in the unified kernel.

Note: A LIFO object shouldn't really be used to try and pass
data items between two different threads in an ordered manner,
as this test is doing. Ordered behavior should only be expected
when a single thread is adding and removing items from a LIFO.
A LIFO is typically used to pass data items between different
threads when ordering doesn't matter -- for example, when using the
LIFO to implement a shared pool of data items that can be allocated
and returned by a bunch of threads. (A LIFO object is more efficient
than a FIFO object for implementing this kind of pool.)

Change-Id: Ic4cbd8b8368477e72c1bf0bca35600b78f963933
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
2016-10-11 09:59:16 -05:00
..
lifo.c unified/test: Fix issues affecting LIFO object test application 2016-10-11 09:59:16 -05:00
Makefile build: move from srctree to ZEPHYR_BASE for app include paths 2016-06-30 14:36:39 +00:00
README tests: move kernel tests to tests/ 2016-02-11 18:06:33 +00:00

This LIFO test set covers the following scenarios.

nano_fiber_lifo_get(TICKS_UNLIMITED)
  - Getting an item from an emtpy LIFO (involves blocking and waking)
  - Getting an item from a non-empty LIFO (no blocking)

nano_task_lifo_get(TICKS_UNLIMITED)
  - Getting an item from an emtpy LIFO (involves blocking and waking)
  - Getting an item from a non-empty LIFO (no blocking)

nano_isr_lifo_get(TICKS_NONE)
  - Getting an item from a non-empty LIFO (no blocking)
  - Getting an item from an empty LIFO (no blocking, returns NULL)

nano_fiber_lifo_get(TICKS_NONE)
  - Getting an item from a non-empty LIFO (no blocking)
  - Getting an item from an empty LIFO (no blocking, returns NULL)

nano_task_lifo_get(TICKS_NONE)
  - Getting an item from a non-empty LIFO (no blocking)
  - Getting an item from an empty LIFO (no blocking, returns NULL)

nano_fiber_lifo_put
  - Waking a task blocked on an empty LIFO
  - Putting an item into an empty LIFO that upon which nothing is blocked
  - Putting an item into a non-empty LIFO

nano_task_lifo_put
  - Waking a fiber blocked on an empty LIFO
  - Putting an item into an empty LIFO that upon which nothing is blocked
  - Putting an item into a non-empty LIFO

nano_isr_lifo_put
  - Putting an item into an empty LIFO that upon which nothing is blocked
  - Putting an item into a non-empty LIFO