project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.48k stars 2.01k forks source link

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

Open bzbarsky-apple opened 2 years ago

bzbarsky-apple commented 2 years ago

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:

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[bot] commented 1 year ago

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[bot] commented 1 year ago

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