Skip to content
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

[Platform] LayerImplFreeRTOS::StartPlatformTimer return value is never checked #22484

Open
bzbarsky-apple opened this issue Sep 8, 2022 · 2 comments
Labels

Comments

@bzbarsky-apple
Copy link
Contributor

bzbarsky-apple commented Sep 8, 2022

Reproduction steps / Feature

  1. Call System::Layer::StartTimer on a FreeRTOS platform before calling PlatformManager::InitChipStack (like TestSystemTimer.cpp does).
  2. The call succeeds, even though the actual event that would cause the timer to fire has not been scheduled. This is because nothing checks the return value of LayerImplFreeRTOS::StartPlatformTimer.

What should probably happen here is:

  • Add the missing checks.
  • Fix the test to actually run the platform manager event loop.
  • Fix things so the platform manager event loop can notice the changes to the system clock the test makes.

Platform

freeRTOS

Platform Version(s)

No response

Type

Manually tested with SDK

(Optional) If manually tested please explain why this is only manually tested

The unit tests have a workaround for this, as described above.

Anything else?

No response

@stale
Copy link

stale bot commented Mar 11, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale Stale issue or PR label Mar 11, 2023
@bzbarsky-apple bzbarsky-apple removed the stale Stale issue or PR label Mar 13, 2023
@stale
Copy link

stale bot commented Sep 17, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant