From dedc046844c7e4e7b53cdc6935fc896f64da2fe5 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Sun, 7 Sep 2025 22:27:17 +0800 Subject: More single-threaded event loop. --- test/base/platform/unix/EventLoopTest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/base/platform/unix/EventLoopTest.cpp b/test/base/platform/unix/EventLoopTest.cpp index 4660efb3..5d4dbcf2 100644 --- a/test/base/platform/unix/EventLoopTest.cpp +++ b/test/base/platform/unix/EventLoopTest.cpp @@ -25,7 +25,7 @@ TEST_CASE("UnixTimerFile Work", "[unix][time]") { REQUIRE(delay < std::chrono::milliseconds(500)); } -TEST_CASE("UnixEventLoop Timer", "[unix][time]") { +TEST_CASE("UnixEventLoop Work", "[unix][time]") { using namespace cru; using namespace cru::platform::unix; @@ -35,6 +35,8 @@ TEST_CASE("UnixEventLoop Timer", "[unix][time]") { auto test_duration = std::chrono::milliseconds(test_miliseconds); auto start = std::chrono::steady_clock::now(); + auto test_pipe = OpenUniDirectionalPipe(); + int counter = 0; loop.SetTimeout( -- cgit v1.2.3