[rtems commit] spintrcritical23: Restore runner priority
Sebastian Huber
sebh at rtems.org
Tue Aug 11 12:26:45 UTC 2020
Module: rtems
Branch: master
Commit: 01677dd491a44cc8d2626f69b1208410f9cdcffa
Changeset: http://git.rtems.org/rtems/commit/?id=01677dd491a44cc8d2626f69b1208410f9cdcffa
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Aug 11 10:03:25 2020 +0200
spintrcritical23: Restore runner priority
---
testsuites/sptests/spintrcritical23/init.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/testsuites/sptests/spintrcritical23/init.c b/testsuites/sptests/spintrcritical23/init.c
index 91b60a4..454941f 100644
--- a/testsuites/sptests/spintrcritical23/init.c
+++ b/testsuites/sptests/spintrcritical23/init.c
@@ -145,6 +145,11 @@ T_TEST_CASE(TaskSetPriorityInterrupt)
{
test_context ctx;
T_interrupt_test_state state;
+ rtems_status_code sc;
+ rtems_task_priority prio;
+
+ sc = rtems_task_set_priority(RTEMS_SELF, RTEMS_CURRENT_PRIORITY, &prio);
+ T_rsc_success(RTEMS_SUCCESSFUL);
memset(&ctx, 0, sizeof(ctx));
rtems_interrupt_lock_initialize(&ctx.lock, "Test");
@@ -157,6 +162,9 @@ T_TEST_CASE(TaskSetPriorityInterrupt)
T_eq_int(state, T_INTERRUPT_TEST_DONE);
rtems_interrupt_lock_destroy(&ctx.lock);
+
+ sc = rtems_task_set_priority(RTEMS_SELF, prio, &prio);
+ T_rsc_success(RTEMS_SUCCESSFUL);
}
static rtems_task Init(rtems_task_argument argument)
More information about the vc
mailing list