summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2023-03-09 16:34:56 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-05-08 22:10:54 +0200
commit4ec01e19f131c4426829c9319a0165c2b95dff7b (patch)
tree59bc936bbdc468f498cef943e9d9e6719af6ce06
parent8b31c2d9c4a7c51907a684953c92cd20a66c79be (diff)
validation: Validate RTEMS_NO_TIMEOUT
Update #3716.
-rw-r--r--testsuites/validation/tc-type.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuites/validation/tc-type.c b/testsuites/validation/tc-type.c
index 79ea7e03b9..f883276152 100644
--- a/testsuites/validation/tc-type.c
+++ b/testsuites/validation/tc-type.c
@@ -71,6 +71,11 @@
* - Assert that RTEMS_ID_NONE cannot be associated with an object because it
* has an object index outside the range of valid object indices.
*
+ * - Validate the RTEMS_NO_TIMEOUT constant.
+ *
+ * - Assert that RTEMS_NO_TIMEOUT is a compile time constant which evaluates
+ * to a value of zero.
+ *
* @{
*/
@@ -93,11 +98,26 @@ static void RtemsTypeValType_Action_0( void )
}
/**
+ * @brief Validate the RTEMS_NO_TIMEOUT constant.
+ */
+static void RtemsTypeValType_Action_1( void )
+{
+ /* Nothing to do */
+
+ /*
+ * Assert that RTEMS_NO_TIMEOUT is a compile time constant which evaluates to
+ * a value of zero.
+ */
+ RTEMS_STATIC_ASSERT( RTEMS_NO_TIMEOUT == 0, NO_TIMEOUT );
+}
+
+/**
* @fn void T_case_body_RtemsTypeValType( void )
*/
T_TEST_CASE( RtemsTypeValType )
{
RtemsTypeValType_Action_0();
+ RtemsTypeValType_Action_1();
}
/** @} */