tests/thread_flood: account for all threads already in use#14181
tests/thread_flood: account for all threads already in use#14181aabadie merged 1 commit intoRIOT-OS:masterfrom
Conversation
There was a problem hiding this comment.
Tested on arduino-mkr1000, I confirm the test is failing on master and fixed with this PR. Thanks!
It also works the same as on master on boards without stdio over USB (tested on stm32f429i-disc1).
I have one question regarding the use of volatile, I don't think it's required here. See below. Apart from that, I think this is good.
|
There are more tests suffering from this, e.g. |
|
And |
a774a73 to
9a72ee7
Compare
Before there were only two: "main" and "idle". But now there can also be a thread for "usbus". The code will now use sched_num_threads and it subtracts that number from MAXTHREADS. This resolves issue RIOT-OS#14180
9a72ee7 to
bbd7c43
Compare
|
Can I add more fixes to this PR to solve similar problems? I have fixes for |
rather open individual PRs, faster to test. BTW, #14224 also needs this! |
|
|
|
I used this to test: #14227 Works with dummy thread and this PR, fails with dummy thread on master. ACK. |
Before there were only two: "main" and "idle". But now there can also be
a thread for "usbus". The code will now first count how many there are in
use when the tests starts. It subtracts that number from MAXTHREADS.
This resolves issue #14180 (fixes #14180)