zephyr/samples/microkernel/test/test_sema_priv
Andrew Boie 579a490ea3 test_sema: fix initialization race
If the other tasks try to trigger a SW IRQ before MONITORTASK
has initilized it, the CPU generates an exception.

Change-Id: Id2745d728a7cf15132096585c073f85f8306cb38
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2016-02-05 20:24:26 -05:00
..
Makefile testcases: use SOURCE_DIR instead of relative #include 2016-02-05 20:15:25 -05:00
prj_arm.conf samples/microkernel: add test for private semaphores 2016-02-05 20:15:18 -05:00
prj_x86.conf CONFIG_DRV_RANDOM is obsolete 2016-02-05 20:15:35 -05:00
prj.mdef test_sema: fix initialization race 2016-02-05 20:24:26 -05:00
README.txt Update Title in sample project README.txt files 2016-02-05 20:15:21 -05:00
testcase.ini samples/microkernel: add test for private semaphores 2016-02-05 20:15:18 -05:00

Title: Private Semaphores

Description:

This test verifies that the microkernel semaphore APIs operate as expected.
This also verifies the mechanism to define private semaphores and their
usage.

--------------------------------------------------------------------------------

Building and Running Project:

This microkernel project outputs to the console.  It can be built and executed
on QEMU as follows:

    make qemu

--------------------------------------------------------------------------------

Troubleshooting:

Problems caused by out-dated project information can be addressed by
issuing one of the following commands then rebuilding the project:

    make clean          # discard results of previous builds
                        # but keep existing configuration info
or
    make pristine       # discard results of previous builds
                        # and restore pre-defined configuration info

--------------------------------------------------------------------------------

Sample Output:

Starting semaphore tests
===================================================================
Signal and test a semaphore without blocking
Signal and test a semaphore with blocking
Testing many tasks blocked on the same semaphore
Testing semaphore groups without blocking
Testing semaphore groups with blocking
Testing semaphore release by fiber
===================================================================
PROJECT EXECUTION SUCCESSFUL