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

Tests the <sys/lock.h> mutex directives. More...

Files

file  testsuites/validation/tc-sys-lock.c

Data Structures

struct  NewlibValSysLock_Context
 Test context for spec:/newlib/val/sys-lock test case. More...

Functions

 T_TEST_CASE_FIXTURE (NewlibValSysLock, &NewlibValSysLock_Fixture)

Detailed Description

Tests the <sys/lock.h> mutex directives.

This test case performs the following actions:

  • Create a mutex and validate the mutex directives.
    • Validate the _Mutex_Try_acquire() directive.
    • Validate the _Mutex_Acquire_timed() directive for valid timeout parameters.
    • Validate the _Mutex_Acquire_timed() directive for an invalid timeout parameter.
    • Validate the _Mutex_Acquire_timed() timeout behaviour.
    • Validate the _Mutex_Acquire() directive.
    • Validate the _Mutex_Try_acquire() directive.
    • Destroy the mutex.
  • Create a recursive mutex and validate the mutex directives.
    • Validate the _Mutex_recursive_Try_acquire() directive.
    • Validate the _Mutex_recursive_Acquire_timed() directive for valid timeout parameters.
    • Validate the _Mutex_recursive_Acquire_timed() directive for an invalid timeout parameter.
    • Validate the _Mutex_recursive_Acquire_timed() timeout behaviour.
    • Validate the _Mutex_recursive_Acquire() directive.
    • Validate the _Mutex_recursive_Try_acquire() directive.
    • Destroy the mutex.