summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-17 17:40:52 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-17 17:42:25 +0200
commit98d2adb935e280f71243549a4dd31eac29c49c27 (patch)
treef50b6bace00d51366fd0af16eccaff58e13569bd
parentriscv: Make sifive_test finisher 4 bytes (diff)
downloadrtems-98d2adb935e280f71243549a4dd31eac29c49c27.tar.bz2
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.
-rw-r--r--cpukit/libtest/t-test-thread-switch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/libtest/t-test-thread-switch.c b/cpukit/libtest/t-test-thread-switch.c
index dd8d256c93..87ad4651fc 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