-
Notifications
You must be signed in to change notification settings - Fork 3k
Baremetal: Enable Semaphore greentea test #12816
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
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.
Seems fine, but is another one that will generate a conflict with my #12425 :(
That changes lots of tests like these to use Chrono for the timing values and APIs.
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.
I noticed that some function headers were not updated for the change of API. The semaphore wait
API was deprecated but it is not updated in some comments. Could you correct it in this PR please?
Pull request has been modified.
aea1237
to
d7d11d5
Compare
|
||
Given a semaphore with no tokens available and ticker with the callback registered | ||
when the main thread calls @a try_acquire_for with 10ms timeout | ||
then the main thread is blocked for 10ms |
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.
The main thread is blocked for 3ms as ticker releases the semaphore after 3ms.
d7d11d5
to
a24419b
Compare
Ci started (test might fail, currently checking for possible master issue) |
Test run: FAILEDSummary: 1 of 4 test jobs failed Failed test jobs:
|
CI started |
1 similar comment
CI started |
Test run: FAILEDSummary: 1 of 4 test jobs failed Failed test jobs:
|
Test run: SUCCESSSummary: 4 of 4 test jobs passed |
Summary of changes
The Semaphore greentea test was disabled in baremetal profile as initially, Mbed OS did not have semaphore without using RTOS APIs, but recently support added. So enabled all the test cases except thread-based one, added the new test cases based on ticker instead of thread.
Impact of changes
With these changes, the baremetal Semaphore greentea test successfully builds and run.
Migration actions required
None.
Documentation
None.
Pull request type
Test results
Reviewers
@evedon @kjbracey-arm