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.
This commit is contained in:
Sebastian Huber
2020-09-17 17:40:52 +02:00
parent 4897a82dec
commit 98d2adb935

View File

@@ -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