diff --git a/Tests/LibCore/CMakeLists.txt b/Tests/LibCore/CMakeLists.txt index e78c1fda301..6f151804758 100644 --- a/Tests/LibCore/CMakeLists.txt +++ b/Tests/LibCore/CMakeLists.txt @@ -1,6 +1,7 @@ set(TEST_SOURCES TestLibCoreArgsParser.cpp TestLibCoreDeferredInvoke.cpp + TestLibCoreEventLoop.cpp TestLibCoreMappedFile.cpp TestLibCoreMimeType.cpp TestLibCorePromise.cpp diff --git a/Tests/LibCore/TestLibCoreEventLoop.cpp b/Tests/LibCore/TestLibCoreEventLoop.cpp new file mode 100644 index 00000000000..9300ea76dac --- /dev/null +++ b/Tests/LibCore/TestLibCoreEventLoop.cpp @@ -0,0 +1,15 @@ +/* + * Copyright (c) 2025, Gregory Bertilson + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include +#include + +TEST_CASE(test_poll_for_events) +{ + Core::EventLoop event_loop; + + event_loop.pump(Core::EventLoop::WaitMode::PollForEvents); +}