aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-09-07 22:27:17 +0800
committerYuqian Yang <crupest@crupest.life>2025-09-07 22:27:17 +0800
commitdedc046844c7e4e7b53cdc6935fc896f64da2fe5 (patch)
treed62bd84546e7834a1abdc43d9b962570a0a52783 /test
parent0b5085db82c06b4dfd9d46dafeee8e3a3e4b21ce (diff)
downloadcru-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.cpp4
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(