Skip to content

Commit

Permalink
client_function_test should not initial et_poller if arch is not linux
Browse files Browse the repository at this point in the history
Signed-off-by: Coldwings <coldwings@me.com>
  • Loading branch information
Coldwings committed Jul 4, 2023
1 parent f01c76a commit 505dd24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/http/test/client_function_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,11 +535,13 @@ int main(int argc, char** arg) {
if (photon::init(photon::INIT_EVENT_DEFAULT, photon::INIT_IO_NONE))
return -1;
DEFER(photon::fini());
#ifdef __linux__
if (et_poller_init() < 0) {
LOG_ERROR("et_poller_init failed");
exit(EAGAIN);
}
DEFER(et_poller_fini());
#endif
set_log_output_level(ALOG_DEBUG);
::testing::InitGoogleTest(&argc, arg);
LOG_DEBUG("test result:`", RUN_ALL_TESTS());
Expand Down

0 comments on commit 505dd24

Please sign in to comment.