Tests: Add a test for EventLoop::pump(PollForEvents)

This commit is contained in:
Zaggy1024 2025-10-22 14:29:06 -05:00 committed by Gregory Bertilson
parent e0a75d5084
commit 3c9ddc9b7f
Notes: github-actions[bot] 2025-10-22 22:33:54 +00:00
2 changed files with 16 additions and 0 deletions

View file

@ -1,6 +1,7 @@
set(TEST_SOURCES set(TEST_SOURCES
TestLibCoreArgsParser.cpp TestLibCoreArgsParser.cpp
TestLibCoreDeferredInvoke.cpp TestLibCoreDeferredInvoke.cpp
TestLibCoreEventLoop.cpp
TestLibCoreMappedFile.cpp TestLibCoreMappedFile.cpp
TestLibCoreMimeType.cpp TestLibCoreMimeType.cpp
TestLibCorePromise.cpp TestLibCorePromise.cpp

View file

@ -0,0 +1,15 @@
/*
* Copyright (c) 2025, Gregory Bertilson <gregory@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibCore/EventLoop.h>
#include <LibTest/TestCase.h>
TEST_CASE(test_poll_for_events)
{
Core::EventLoop event_loop;
event_loop.pump(Core::EventLoop::WaitMode::PollForEvents);
}