summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-05-28 14:40:43 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-05-28 14:40:43 +0200
commit021e04d2a8ca574f72be3952f50b565dd3a3a8cf (patch)
treec3e9e67512192ed818f2314c47918c6fbedbf5cb
parent528f98a4f6bd11301688c2a1298cdb2754e6bc5b (diff)
testsuites/validation/tc-events.c
-rw-r--r--testsuites/validation/tc-events.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/testsuites/validation/tc-events.c b/testsuites/validation/tc-events.c
index 2a5f18dc9b..6ef0bd416e 100644
--- a/testsuites/validation/tc-events.c
+++ b/testsuites/validation/tc-events.c
@@ -69,6 +69,9 @@
*
* - Run the event constant and number test for all 32 event constants.
*
+ * - Check that RTEMS_PENDING_EVENTS is a constant expression which evaluates
+ * to a value of zero.
+ *
* - Calculate the value of a bitwise or of all 32 event constants.
*
* - Check that the value is equal to RTEMS_ALL_EVENTS.
@@ -131,10 +134,19 @@ static void RtemsEventValEvents_Action_0( void )
}
/**
- * @brief Calculate the value of a bitwise or of all 32 event constants.
+ * @brief Check that RTEMS_PENDING_EVENTS is a constant expression which
+ * evaluates to a value of zero.
*/
static void RtemsEventValEvents_Action_1( void )
{
+ RTEMS_STATIC_ASSERT( RTEMS_PENDING_EVENTS == 0, PENDING_EVENTS );
+}
+
+/**
+ * @brief Calculate the value of a bitwise or of all 32 event constants.
+ */
+static void RtemsEventValEvents_Action_2( void )
+{
rtems_event_set all;
int i;
@@ -153,7 +165,7 @@ static void RtemsEventValEvents_Action_1( void )
/**
* @brief Validate the Event Manager directive options.
*/
-static void RtemsEventValEvents_Action_2( void )
+static void RtemsEventValEvents_Action_3( void )
{
/* No action */
@@ -179,6 +191,7 @@ T_TEST_CASE( RtemsEventValEvents )
RtemsEventValEvents_Action_0();
RtemsEventValEvents_Action_1();
RtemsEventValEvents_Action_2();
+ RtemsEventValEvents_Action_3();
}
/** @} */