summaryrefslogtreecommitdiffstats
path: root/rtemsspec/tests/test_validation.py
diff options
context:
space:
mode:
Diffstat (limited to 'rtemsspec/tests/test_validation.py')
-rw-r--r--rtemsspec/tests/test_validation.py66
1 files changed, 62 insertions, 4 deletions
diff --git a/rtemsspec/tests/test_validation.py b/rtemsspec/tests/test_validation.py
index a35ff371..9c6f57ef 100644
--- a/rtemsspec/tests/test_validation.py
+++ b/rtemsspec/tests/test_validation.py
@@ -946,6 +946,7 @@ T_TEST_CASE_FIXTURE( Tc2, &Tc2_Fixture )
* @ingroup RTEMSTestCaseTc5
* @ingroup RTEMSTestCaseTc6
* @ingroup RTEMSTestCaseTc7
+ * @ingroup RTEMSTestCaseTc8
*/
/*
@@ -1361,12 +1362,13 @@ void Tc5_Run( int *a, int b, int *c )
{
Tc5_Context *ctx;
- ctx = T_push_fixture( &Tc5_Node, &Tc5_Fixture );
-
+ ctx = &Tc5_Instance;
ctx->a = a;
ctx->b = b;
ctx->c = c;
+ ctx = T_push_fixture( &Tc5_Node, &Tc5_Fixture );
+
T_plan( 2 );
Tc5_Action_0( ctx );
@@ -1425,6 +1427,61 @@ void Tc7_Run( void )
}
/** @} */
+
+/**
+ * @defgroup RTEMSTestCaseTc8 spec:/tc8
+ *
+ * @ingroup RTEMSTestSuiteTs
+ *
+ * This test case performs the following actions:
+ *
+ * - Action.
+ *
+ * @{
+ */
+
+/**
+ * @brief Test context for spec:/tc8 test case.
+ */
+typedef struct {
+ int member;
+} Tc8_Context;
+
+static Tc8_Context
+ Tc8_Instance;
+
+static T_fixture Tc8_Fixture = {
+ .setup = NULL,
+ .stop = NULL,
+ .teardown = NULL,
+ .scope = NULL,
+ .initial_context = &Tc8_Instance
+};
+
+/**
+ * @brief Action.
+ */
+static void Tc8_Action_0( Tc8_Context *ctx )
+{
+ /* 0 */
+}
+
+static T_fixture_node Tc8_Node;
+
+void Tc8_Run( void )
+{
+ Tc8_Context *ctx;
+
+ ctx = T_push_fixture( &Tc8_Node, &Tc8_Fixture );
+
+ T_plan( 1 );
+
+ Tc8_Action_0( ctx );
+
+ T_pop_fixture();
+}
+
+/** @} */
"""
assert content == src.read()
with open(os.path.join(base_directory, "tc5.h"), "r") as src:
@@ -2170,11 +2227,12 @@ void Action2_Run( int *a, int b, int *c )
Action2_Entry entry;
size_t index;
- ctx = T_push_fixture( &Action2_Node, &Action2_Fixture );
-
+ ctx = &Action2_Instance;
ctx->a = a;
ctx->b = b;
ctx->c = c;
+
+ ctx = T_push_fixture( &Action2_Node, &Action2_Fixture );
ctx->in_action_loop = true;
index = 0;