Tests the attribute constants of the Classic API.
More...
Tests the attribute constants of the Classic API.
This test case performs the following actions:
- Validate the non-default attribute constants.
- Check that RTEMS_BARRIER_AUTOMATIC_RELEASE is a power of two.
- Check that RTEMS_BINARY_SEMAPHORE is a power of two.
- Check that RTEMS_FLOATING_POINT is a power of two.
- Check that RTEMS_GLOBAL is a power of two.
- Check that RTEMS_INHERIT_PRIORITY is a power of two.
- Check that RTEMS_MULTIPROCESSOR_RESOURCE_SHARING is a power of two.
- Check that RTEMS_PRIORITY is a power of two.
- Check that RTEMS_PRIORITY_CEILING is a power of two.
- Check that RTEMS_SIMPLE_BINARY_SEMAPHORE is a power of two.
- Check that RTEMS_SYSTEM_TASK is a power of two.
- Validate the default attribute constants.
- Check that RTEMS_APPLICATION_TASK is equal to zero.
- Check that RTEMS_BARRIER_MANUAL_RELEASE is equal to zero.
- Check that RTEMS_COUNTING_SEMAPHORE is equal to zero.
- Check that RTEMS_DEFAULT_ATTRIBUTES is equal to zero.
- Check that RTEMS_FIFO is equal to zero.
- Check that RTEMS_LOCAL is equal to zero.
- Check that RTEMS_NO_FLOATING_POINT is equal to zero.
- Check that RTEMS_NO_INHERIT_PRIORITY is equal to zero.
- Check that RTEMS_NO_MULTIPROCESSOR_RESOURCE_SHARING is equal to zero.
- Check that RTEMS_NO_PRIORITY_CEILING is equal to zero.
- Calculate the bitwise or of all non-default attribute constants.
- Check that the count of set bits in the calculated value is equal to the count of non-default attribute constants. Since each non-default attribute constant is a power of two, this proves that each constant has a unique value.
- Calculate the bitwise or of the RTEMS_BINARY_SEMAPHORE, RTEMS_COUNTING_SEMAPHORE, and RTEMS_SIMPLE_BINARY_SEMAPHORE attribute constants.
- Check that the calculated value is equal to RTEMS_SEMAPHORE_CLASS.