[PATCH 02/10] validation: Validate RTEMS_NO_TIMEOUT
Sebastian Huber
sebastian.huber at embedded-brains.de
Mon May 8 20:11:53 UTC 2023
Update #3716.
---
testsuites/validation/tc-type.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
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.
+ *
* @{
*/
@@ -92,12 +97,27 @@ 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();
}
/** @} */
--
2.35.3
More information about the devel
mailing list