Files
rt-thread/components/lwp/utest/SConscript
T
ari.liu ba79f69477 [kernel][ipc] Fix timeout wakeup ownership race
Keep thread timer ownership when timer stop races with an in-flight timeout callback, and consume IPC resources only after a waiter is resumed successfully.

Complete ownership cleanup in the generic and RT-Smart channel timeout callbacks. Add deterministic scheduler and LWP regressions for Event, Semaphore, Mailbox, Message Queue, sender, and receiver paths.
2026-08-21 16:52:01 +08:00

20 lines
528 B
Python

Import('rtconfig')
from building import *
cwd = GetCurrentDir()
src = []
CPPPATH = [cwd]
if GetDepend(['RT_UTEST_LWP', 'RT_USING_SMART']):
src += ['condvar_timedwait_tc.c', 'condvar_broadcast_tc.c', 'condvar_signal_tc.c']
if GetDepend(['RT_UTEST_SCHEDULER', 'RT_USING_SMART']):
src += ['channel_timeout_tc.c']
if GetDepend(['RT_UTEST_LWP_TTY_PTMX', 'RT_USING_SMART']):
src += ['tty_ptmx_tc.c']
group = DefineGroup('utestcases', src, depend = ['RT_USING_UTESTCASES'], CPPPATH = CPPPATH)
Return('group')