diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2019-03-15 12:19:56 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2019-03-15 13:26:48 +0100 |
commit | 8bf4079070df81a6b872365d20d48dbcecfba687 (patch) | |
tree | a4530c0d6ebe296f44a91469073850cc16d6d0bd /vespalib/src/tests/net/selector | |
parent | 2e8f039246b4b69303f2da48f37819a6c24ce887 (diff) |
Perform basic epoll emulation on Darwin.
Diffstat (limited to 'vespalib/src/tests/net/selector')
-rw-r--r-- | vespalib/src/tests/net/selector/selector_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vespalib/src/tests/net/selector/selector_test.cpp b/vespalib/src/tests/net/selector/selector_test.cpp index 302de712ef8..7d7a147bcb2 100644 --- a/vespalib/src/tests/net/selector/selector_test.cpp +++ b/vespalib/src/tests/net/selector/selector_test.cpp @@ -2,7 +2,7 @@ #include <vespa/vespalib/testkit/test_kit.h> #include <vespa/vespalib/net/socket_address.h> #include <vespa/vespalib/net/selector.h> -#include <vespa/vespalib/util/stringfmt.h> +#include <vespa/vespalib/net/socket_utils.h> #include <thread> #include <functional> #include <chrono> @@ -18,7 +18,7 @@ struct SocketPair { SocketPair &operator=(SocketPair &&) = default; static SocketPair create() { int sockets[2]; - ASSERT_EQUAL(0, socketpair(AF_UNIX, SOCK_STREAM | O_NONBLOCK, 0, sockets)); + socketutils::nonblocking_socketpair(AF_UNIX, SOCK_STREAM, 0, sockets); return SocketPair(sockets[0], sockets[1]); } ~SocketPair() {} |