summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-26 12:13:55 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-26 12:13:55 +0200
commitae56aeff4c19b1850c3535b354f17298c306f257 (patch)
treecae6583471ae7707dcb5b3dfed6d0d32d0d8f7b9
parent1cfef53cddb6d1072794d512b2cb04850742eb32 (diff)
validation: object services
-rw-r--r--testsuites/validation/tc-object.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/testsuites/validation/tc-object.c b/testsuites/validation/tc-object.c
index 916c35aa95..d18660fc1e 100644
--- a/testsuites/validation/tc-object.c
+++ b/testsuites/validation/tc-object.c
@@ -61,7 +61,7 @@
*
* @ingroup RTEMSTestSuiteTestsuitesValidation0
*
- * @brief Tests the rtems_build_name() macro.
+ * @brief Tests the @ref RTEMSAPIClassicObject directives.
*
* This test case performs the following actions:
*
@@ -69,6 +69,10 @@
*
* - Check that the accumulated name has the expected value.
*
+ * - Validate the result of rtems_object_get_local_node().
+ *
+ * - Check that the returned value is zero.
+ *
* @{
*/
@@ -143,13 +147,29 @@ static void RtemsObjectValObject_Action_0( void )
}
/**
+ * @brief Validate the result of rtems_object_get_local_node().
+ */
+static void RtemsObjectValObject_Action_1( void )
+{
+ uint32_t node;
+
+ node = rtems_object_get_local_node();
+
+ /*
+ * Check that the returned value is zero.
+ */
+ T_step_eq_u32( 1, node, 0 );
+}
+
+/**
* @fn void T_case_body_RtemsObjectValObject( void )
*/
T_TEST_CASE( RtemsObjectValObject )
{
- T_plan( 1 );
+ T_plan( 2 );
RtemsObjectValObject_Action_0();
+ RtemsObjectValObject_Action_1();
}
/** @} */