aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/net/selector
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2019-03-15 12:19:56 +0100
committerTor Egge <Tor.Egge@broadpark.no>2019-03-15 13:26:48 +0100
commit8bf4079070df81a6b872365d20d48dbcecfba687 (patch)
treea4530c0d6ebe296f44a91469073850cc16d6d0bd /vespalib/src/tests/net/selector
parent2e8f039246b4b69303f2da48f37819a6c24ce887 (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.cpp4
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() {}