This can happen when we have no network stack configured. Fixes bug
30804; bugfix on 0.2.5.1-alpha.
--- /dev/null
+ o Minor bugfixes (testing):
+ - Teach the util/socketpair_ersatz test to work correctly when we
+ have no network stack configured. Fixes bug 30804; bugfix on
+ 0.2.5.1-alpha.
tt_skip();
}
#endif /* defined(__FreeBSD__) */
+ if (ersatz && socketpair_result == -ENETUNREACH) {
+ /* We can also fail with -ENETUNREACH if we have no network stack at
+ * all. */
+ tt_skip();
+ }
tt_int_op(0, OP_EQ, socketpair_result);
tt_assert(SOCKET_OK(fds[0]));