Skip to content

Commit 92e1d5e

Browse files
Disable TestEventLoopHandler when chip_device_platform == "fake"
The fake PlatformManagerImpl doesn't drive the SystemLayer event loop.
1 parent 9dd9161 commit 92e1d5e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/system/tests/TestEventLoopHandler.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
#include <pw_unit_test/framework.h>
1818
#include <system/SystemConfig.h>
1919

20+
// EventLoopHandlers are only supported by a select-based LayerSocketsLoop
2021
#if CHIP_SYSTEM_CONFIG_USE_SOCKETS && !CHIP_SYSTEM_CONFIG_USE_DISPATCH
22+
// The fake PlatformManagerImpl does not drive the system layer event loop
23+
#if !CHIP_DEVICE_LAYER_TARGET_FAKE
2124

2225
#include <lib/support/CodeUtils.h>
2326
#include <platform/CHIPDeviceLayer.h>
@@ -141,4 +144,5 @@ TEST_F(TestEventLoopHandler, EventLoopHandlerWake)
141144
EXPECT_LE(sleepDuration.count(), 500u); // allow some slack for test machine load
142145
}
143146

147+
#endif // !CHIP_DEVICE_LAYER_TARGET_FAKE
144148
#endif // CHIP_SYSTEM_CONFIG_USE_SOCKETS && !CHIP_SYSTEM_CONFIG_USE_DISPATCH

0 commit comments

Comments
 (0)