aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/coroutine/engine/coroutine_ut.cpp
diff options
context:
space:
mode:
authorkulikov <kulikov@yandex-team.com>2022-11-03 14:50:26 +0300
committerkulikov <kulikov@yandex-team.com>2022-11-03 14:50:26 +0300
commitf6313e0ed2947ba490bb9b21781ec57cc839d1e9 (patch)
treea684fdf362652bfcc89f6f3d0d1c7333b9c84c12 /library/cpp/coroutine/engine/coroutine_ut.cpp
parent65ab9f6a97c184f41f7a5de0b031336dd32c6d4f (diff)
downloadydb-f6313e0ed2947ba490bb9b21781ec57cc839d1e9.tar.gz
,completely remove combined poller
- no significant perfomance gain by now; - balancer doesn't use combined poller; - tests over combined poller normally check only one part; - poll and epoll have some differences in behaivor; - there is probably a bug somewhere (uncaught exception on switch from poll to epoll).
Diffstat (limited to 'library/cpp/coroutine/engine/coroutine_ut.cpp')
-rw-r--r--library/cpp/coroutine/engine/coroutine_ut.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/library/cpp/coroutine/engine/coroutine_ut.cpp b/library/cpp/coroutine/engine/coroutine_ut.cpp
index c8a1852f7c..b4d0b62543 100644
--- a/library/cpp/coroutine/engine/coroutine_ut.cpp
+++ b/library/cpp/coroutine/engine/coroutine_ut.cpp
@@ -32,8 +32,8 @@ class TCoroTest: public TTestBase {
UNIT_TEST(TestException);
UNIT_TEST(TestJoinCancelExitRaceBug);
UNIT_TEST(TestWaitWakeLivelockBug);
- UNIT_TEST(TestFastPathWakeDefault)
- // TODO (velavokr): BALANCER-1338 our epoll wrapper cannot handle pipe eofs
+// TODO (velavokr): BALANCER-1338 our epoll wrapper cannot handle pipe eofs
+// UNIT_TEST(TestFastPathWakeDefault)
// UNIT_TEST(TestFastPathWakeEpoll)
UNIT_TEST(TestFastPathWakeKqueue)
UNIT_TEST(TestFastPathWakePoll)
@@ -936,7 +936,13 @@ void TCoroTest::TestPollEngines() {
if (engine == EContPoller::Default) {
defaultChecked = true;
- UNIT_ASSERT_VALUES_EQUAL(exec.Poller()->PollEngine(), EContPoller::Combined);
+#if defined(HAVE_EPOLL_POLLER)
+ UNIT_ASSERT_VALUES_EQUAL(exec.Poller()->PollEngine(), EContPoller::Epoll);
+#elif defined(HAVE_KQUEUE_POLLER)
+ UNIT_ASSERT_VALUES_EQUAL(exec.Poller()->PollEngine(), EContPoller::Kqueue);
+#else
+ UNIT_ASSERT_VALUES_EQUAL(exec.Poller()->PollEngine(), EContPoller::Select);
+#endif
} else {
UNIT_ASSERT_VALUES_EQUAL(exec.Poller()->PollEngine(), engine);
}