Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TestEventLoopHandler for Zephyr native
Browse files Browse the repository at this point in the history
Expect correct sequence for different LayerImplSelect::Signal
implementations. When CHIP_SYSTEM_CONFIG_POSIX_LOCKING is not defined,
WakeEvent::Notify is called and loop has to spin one more time to
process the event.

Signed-off-by: Adrian Gielniewski <[email protected]>
adigie committed Jan 31, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 6061ab6 commit 72ca79e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/system/tests/TestEventLoopHandler.cpp
Original file line number Diff line number Diff line change
@@ -109,7 +109,12 @@ TEST_F(TestEventLoopHandler, EventLoopHandlerSequence)
});

chip::DeviceLayer::PlatformMgr().RunEventLoop();

#if CHIP_SYSTEM_CONFIG_POSIX_LOCKING
EXPECT_EQ(loopHandler.trace, std::string("1AP2HP3R4"));
#else
EXPECT_EQ(loopHandler.trace, std::string("1APHP2HPHP3R4"));
#endif
}

TEST_F(TestEventLoopHandler, EventLoopHandlerWake)

0 comments on commit 72ca79e

Please sign in to comment.