Commit 6a3fb67
committed
Fix SMP time-slice test on CI runners
The threadx_smp_time_slice_test creates 8 priority-31 threads with
time-slice=1 across 3 available SMP cores, sleeps 20 ticks, then asserts
all thread counters are non-zero.
On loaded CI runners (GitHub Actions), the linux SMP port's posix thread
may not receive enough host CPU time for all 8 threads to get scheduled
within 20 ticks. This produced intermittent ERROR eclipse-threadx#31 failures in
stack_checking_rand_fill_build and trace_build configs.
Increase the sleep from 20 to 100 ticks, giving 5x headroom for host
scheduling jitter while keeping test execution under 2 seconds.1 parent df1ed08 commit 6a3fb67
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
248 | 252 | | |
249 | 253 | | |
250 | 254 | | |
| |||
0 commit comments