Skip to content

Commit

Permalink
Initialize memory before running schedule lambda test (#26446)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq authored May 10, 2023
1 parent 65a3b38 commit 4f081a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/system/tests/TestSystemScheduleLambda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ static nlTestSuite kTheSuite =
*/
static int TestSetup(void * aContext)
{
if (chip::Platform::MemoryInit() != CHIP_NO_ERROR)
return FAILURE;
if (chip::DeviceLayer::PlatformMgr().InitChipStack() != CHIP_NO_ERROR)
return FAILURE;

return (SUCCESS);
}

Expand All @@ -80,6 +81,7 @@ static int TestSetup(void * aContext)
static int TestTeardown(void * aContext)
{
chip::DeviceLayer::PlatformMgr().Shutdown();
chip::Platform::MemoryShutdown();
return (SUCCESS);
}

Expand Down

0 comments on commit 4f081a5

Please sign in to comment.