summaryrefslogtreecommitdiffstats
path: root/testsuites/tmtests/tm26/task1.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/tmtests/tm26/task1.c')
-rw-r--r--testsuites/tmtests/tm26/task1.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuites/tmtests/tm26/task1.c b/testsuites/tmtests/tm26/task1.c
index 6db80632f8..299fa67ddc 100644
--- a/testsuites/tmtests/tm26/task1.c
+++ b/testsuites/tmtests/tm26/task1.c
@@ -418,6 +418,15 @@ void complete_test( void )
thread_get_invalid_time = Read_timer();
/*
+ * This is the running task and we have tricked RTEMS out enough where
+ * we need to set some internal tracking information to match this.
+ */
+
+ _Thread_Heir = _Thread_Executing;
+ _Context_Switch_necessary = FALSE;
+ _Thread_Dispatch_disable_level = 0;
+
+ /*
* Now dump all the times
*/