From 98d2adb935e280f71243549a4dd31eac29c49c27 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 17 Sep 2020 17:40:52 +0200 Subject: 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 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 -- cgit v1.2.3