[rtems commit] libtest: Fix T_thread_switch_record()
Sebastian Huber
sebh at rtems.org
Thu Sep 17 16:09:07 UTC 2020
Module: rtems
Branch: master
Commit: 98d2adb935e280f71243549a4dd31eac29c49c27
Changeset: http://git.rtems.org/rtems/commit/?id=98d2adb935e280f71243549a4dd31eac29c49c27
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Sep 17 17:40:52 2020 +0200
libtest: Fix T_thread_switch_record()
If RTEMS_DEBUG is not defined, then we have to explicitly set the node
off the chain.
Update #3199.
---
cpukit/libtest/t-test-thread-switch.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/cpukit/libtest/t-test-thread-switch.c b/cpukit/libtest/t-test-thread-switch.c
index dd8d256..87ad465 100644
--- a/cpukit/libtest/t-test-thread-switch.c
+++ b/cpukit/libtest/t-test-thread-switch.c
@@ -72,6 +72,7 @@ T_thread_switch_destroy(T_destructor *dtor)
ctx = RTEMS_CONTAINER_OF(dtor, T_thread_switch_context, dtor);
_User_extensions_Remove_set(&ctx->ext);
+ _Chain_Set_off_chain(&ctx->ext.Node);
}
static void
More information about the vc
mailing list