diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-09-07 22:27:17 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-09-07 22:27:17 +0800 |
commit | dedc046844c7e4e7b53cdc6935fc896f64da2fe5 (patch) | |
tree | d62bd84546e7834a1abdc43d9b962570a0a52783 /test | |
parent | 0b5085db82c06b4dfd9d46dafeee8e3a3e4b21ce (diff) | |
download | cru-dedc046844c7e4e7b53cdc6935fc896f64da2fe5.tar.gz cru-dedc046844c7e4e7b53cdc6935fc896f64da2fe5.tar.bz2 cru-dedc046844c7e4e7b53cdc6935fc896f64da2fe5.zip |
More single-threaded event loop.
Diffstat (limited to 'test')
-rw-r--r-- | test/base/platform/unix/EventLoopTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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( |