-
Notifications
You must be signed in to change notification settings - Fork 3k
Test: RTOS: Semaphore: Rework tests #4682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
|
||
res = t.start(callback(single_thread, &data)); | ||
TEST_ASSERT_EQUAL(osOK, res); | ||
Thread::yield(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you might consider using wait instead of yield here to make this test more deterministic. Depending when in the tick you yield the new thread still might not have enough time to call semaphore wait. Also, if the priority of main is below the priority of the new thread, then the yield won't help.
/morph test |
Result: FAILUREYour command has finished executing! Here's what you wrote!
|
/morph test |
retest uvisor |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
@0xc0170 ping |
@c1728p9 happy with the update? |
Description
Add more unit style tests for Semaphore class and rework existing test.
Status
READY
CC: @0xc0170