summaryrefslogtreecommitdiffstats
path: root/testsuites/validation/tc-task-restart.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/validation/tc-task-restart.c')
-rw-r--r--testsuites/validation/tc-task-restart.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/testsuites/validation/tc-task-restart.c b/testsuites/validation/tc-task-restart.c
index 1c7528e961..c915f01a49 100644
--- a/testsuites/validation/tc-task-restart.c
+++ b/testsuites/validation/tc-task-restart.c
@@ -3,11 +3,11 @@
/**
* @file
*
- * @ingroup RTEMSTestCaseRtemsTaskReqRestart
+ * @ingroup RtemsTaskReqRestart
*/
/*
- * Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
+ * Copyright (C) 2021 embedded brains GmbH & Co. KG
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -65,9 +65,9 @@
#include <rtems/test.h>
/**
- * @defgroup RTEMSTestCaseRtemsTaskReqRestart spec:/rtems/task/req/restart
+ * @defgroup RtemsTaskReqRestart spec:/rtems/task/req/restart
*
- * @ingroup RTEMSTestSuiteTestsuitesValidationNoClock0
+ * @ingroup TestsuitesValidationNoClock0
*
* @{
*/
@@ -251,7 +251,7 @@ typedef struct {
/**
* @brief This member provides a jump context to resume a thread dispatch.
*/
- jmp_buf thread_dispatch_context;;
+ jmp_buf thread_dispatch_context;
/**
* @brief This member provides the context to wrap thread queue operations.
@@ -319,13 +319,13 @@ typedef struct {
/**
* @brief This member contains extension calls.
*/
- ExtensionCalls calls;;
+ ExtensionCalls calls;
/**
* @brief This member contains extension calls after the rtems_task_restart()
* call.
*/
- ExtensionCalls calls_after_restart;;
+ ExtensionCalls calls_after_restart;
/**
* @brief This member contains the actual argument passed to the entry point.
@@ -1424,7 +1424,7 @@ static void RtemsTaskReqRestart_Post_State_Check(
T_eq_ptr( event->thread, ctx->worker_tcb );
}
- if ( !ctx->real_priority_is_initial ) {
+ if ( !ctx->real_priority_is_initial && !ctx->terminating ) {
event = T_scheduler_next_any( &ctx->scheduler_log.header, &index );
T_eq_int( event->operation, T_SCHEDULER_UPDATE_PRIORITY );
T_eq_ptr( event->thread, ctx->worker_tcb );
@@ -1464,7 +1464,7 @@ static void RtemsTaskReqRestart_Post_State_Check(
}
}
- if ( !ctx->real_priority_is_initial ) {
+ if ( !ctx->real_priority_is_initial && !ctx->terminating ) {
event = T_scheduler_next_any( &ctx->scheduler_log.header, &index );
T_eq_int( event->operation, T_SCHEDULER_UPDATE_PRIORITY );
T_eq_ptr( event->thread, ctx->worker_tcb );
@@ -1504,7 +1504,7 @@ static void RtemsTaskReqRestart_Post_State_Check(
}
}
- if ( !ctx->real_priority_is_initial ) {
+ if ( !ctx->real_priority_is_initial && !ctx->terminating ) {
event = T_scheduler_next_any( &ctx->scheduler_log.header, &index );
T_eq_int( event->operation, T_SCHEDULER_UPDATE_PRIORITY );
T_eq_ptr( event->thread, ctx->worker_tcb );