TS-1365 Fix AIO unit test
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/d96ac78d Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/d96ac78d Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/d96ac78d Branch: refs/heads/5.0.x Commit: d96ac78d036d2ea52356a178da57bcf4733bfa76 Parents: f78c83a Author: Leif Hedstrom <zw...@apache.org> Authored: Thu Jan 2 16:30:39 2014 -0700 Committer: Leif Hedstrom <zw...@apache.org> Committed: Thu Jan 2 16:30:39 2014 -0700 ---------------------------------------------------------------------- iocore/aio/test_AIO.cc | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d96ac78d/iocore/aio/test_AIO.cc ---------------------------------------------------------------------- diff --git a/iocore/aio/test_AIO.cc b/iocore/aio/test_AIO.cc index 817d8a2..3ff731a 100644 --- a/iocore/aio/test_AIO.cc +++ b/iocore/aio/test_AIO.cc @@ -34,6 +34,14 @@ Diags *diags; int diags_init = 0; #define DIAGS_LOG_FILE "diags.log" +// Necessary for AIO +#if defined(solaris) +int net_config_poll_timeout = 30; +#else +int net_config_poll_timeout = 10; +#endif + + ////////////////////////////////////////////////////////////////////////////// // // void reconfigure_diags()