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

Tests the option constants of the Classic API. More...

Files

file  testsuites/validation/tc-options.c

Functions

 T_TEST_CASE (RtemsOptionValOptions)

Detailed Description

Tests the option constants of the Classic API.

This test case performs the following actions:

  • Validate the non-default option constants.
    • Check that RTEMS_EVENT_ANY is a power of two.
    • Check that RTEMS_NO_WAIT is a power of two.
  • Validate the default option constants.
    • Check that RTEMS_DEFAULT_OPTIONS is equal to zero.
    • Check that RTEMS_EVENT_ALL is equal to zero.
    • Check that RTEMS_WAIT is equal to zero.
  • Calculate the bitwise or of all non-default option constants.
    • Check that the count of set bits in the calculated value is equal to the count of non-default option constants. Since each non-default option constant is a power of two, this proves that each constant has a unique value.
  • Check the value of RTEMS_DEFAULT_OPTIONS.
    • Check RTEMS_DEFAULT_OPTIONS equals RTEMS_WAIT.