From 42c8fbf933a867025aebb54cd701594a5cd9b36b Mon Sep 17 00:00:00 2001 From: Marc Lepage Date: Tue, 14 Feb 2023 17:22:10 -0500 Subject: [PATCH] Init/shutdown platform mgr in TestCASESession Seems needed on Darwin. --- src/protocols/secure_channel/tests/TestCASESession.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/protocols/secure_channel/tests/TestCASESession.cpp b/src/protocols/secure_channel/tests/TestCASESession.cpp index 08a922efc5c142..fb881cb60579d9 100644 --- a/src/protocols/secure_channel/tests/TestCASESession.cpp +++ b/src/protocols/secure_channel/tests/TestCASESession.cpp @@ -1160,6 +1160,8 @@ int CASE_TestSecurePairing_Setup(void * inContext) { chip::Platform::MemoryInit(); + chip::DeviceLayer::PlatformMgr().InitChipStack(); + CHIP_ERROR err = CASETestSecurePairingSetup(inContext); if (err != CHIP_NO_ERROR) { @@ -1186,6 +1188,7 @@ int CASE_TestSecurePairing_Teardown(void * inContext) gCommissionerFabrics.DeleteAllFabrics(); gDeviceFabrics.DeleteAllFabrics(); static_cast(inContext)->Shutdown(); + chip::DeviceLayer::PlatformMgr().Shutdown(); return SUCCESS; }