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

Tests an event constant and number of the Event Manager using the Classic and system event sets of the executing task. More...

Files

file  testsuites/validation/tr-event-constant.c
file  testsuites/validation/tr-event-constant.h

Data Structures

struct  RtemsEventValEventConstant_Context
 Test context for spec:/rtems/event/val/event-constant test case. More...

Functions

void RtemsEventValEventConstant_Run (rtems_event_set event, int number)
 Runs the parameterized test case.

Detailed Description

Tests an event constant and number of the Event Manager using the Classic and system event sets of the executing task.

This test case performs the following actions:

  • Validate the event constant.
    • Check that the event constant is equal to the event number bit in the event set.
    • Check that the event number bit of the event constant is not set in RTEMS_PENDING_EVENTS.
  • Get all pending events of the Classic event set of the executing task.
    • Check that the directive call was successful.
    • Check that there were no pending events.
  • Get all pending events of the system event set of the executing task.
    • Check that the directive call was successful.
    • Check that there were no pending events.
  • Receive all pending events of the Classic event set of the executing task.
    • Check that the directive call was unsatisfied.
    • Check that there were no events received.
  • Receive all pending events of the system event set of the executing task.
    • Check that the directive call was unsatisfied.
    • Check that there were no events received.
  • Send the event to the Classic event set of the executing task.
    • Check that the directive call was successful.
  • Get all pending events of the Classic event set of the executing task.
    • Check that the directive call was successful.
    • Check that the pending event is equal to the event sent by a previous action.
  • Get all pending events of the system event set of the executing task.
    • Check that the directive call was successful.
    • Check that there were no pending events.
  • Receive any event of the Classic event set of the executing task.
    • Check that the directive call was successful.
    • Check that the received event is equal to the event sent by a previous action.
  • Receive any event of the system event set of the executing task.
    • Check that the directive call was unsatisfied.
    • Check that the no events were received.
  • Send the event to the Classic event set of the executing task.
    • Check that the directive call was successful.
  • Get all pending events of the Classic event set of the executing task.
    • Check that the directive call was successful.
    • Check that there were no pending events.
  • Get all pending events of the system event set of the executing task.
    • Check that the directive call was successful.
    • Check that the pending event is equal to the event sent by a previous action.
  • Receive any event of the Classic event set of the executing task.
    • Check that the directive call was unsatisfied.
    • Check that the no events were received.
  • Receive any event of the system event set of the executing task.
    • Check that the directive call was successful.
    • Check that the received event is equal to the event sent by a previous action.
  • Get all pending events of the Classic event set of the executing task.
    • Check that the directive call was successful.
    • Check that there were no pending events.
  • Get all pending events of the system event set of the executing task.
    • Check that the directive call was successful.
    • Check that there were no pending events.

Function Documentation

◆ RtemsEventValEventConstant_Run()

void RtemsEventValEventConstant_Run ( rtems_event_set event,
int number )

Runs the parameterized test case.

Parameters
eventis the event constant.
numberis the event number.