RTEMS 6.3
Loading...
Searching...
No Matches

Tests uniprocessor-specific semaphore behaviour. More...

Files

file  testsuites/validation/tc-sem-uni.c

Data Structures

struct  RtemsSemValUni_Context
 Test context for spec:/rtems/sem/val/uni test case. More...

Typedefs

typedef RtemsSemValUni_Context Context

Functions

 T_TEST_CASE_FIXTURE (RtemsSemValUni, &RtemsSemValUni_Fixture)

Detailed Description

Tests uniprocessor-specific semaphore behaviour.

This test case performs the following actions:

  • Create a worker thread and two MrsP mutexes. Obtain the Mrsp mutexes and check that a task yield works (owner is not sticky). We need two mutexes since the uniprocessor schedulers do not increment the stick level in the scheduler unblock operation.
    • Yield and let the worker obtain the MrsP mutexes.
    • Yield and let the worker release the MrsP mutexes.
    • Clean up all used resources.