1
0
mirror of synced 2025-07-29 11:01:13 +03:00

Add AF_UNIX support on windows (#2115)

Signed-off-by: Piotr Stankiewicz <piotr.stankiewicz@docker.com>
This commit is contained in:
Piotr
2025-03-25 00:14:24 +01:00
committed by GitHub
parent 65ce51aed7
commit 72b35befb2
2 changed files with 10 additions and 3 deletions

View File

@ -70,7 +70,6 @@ static void read_file(const std::string &path, std::string &out) {
fs.read(&out[0], static_cast<std::streamsize>(size));
}
#ifndef _WIN32
class UnixSocketTest : public ::testing::Test {
protected:
void TearDown() override { std::remove(pathname_.c_str()); }
@ -167,6 +166,7 @@ TEST_F(UnixSocketTest, abstract) {
}
#endif
#ifndef _WIN32
TEST(SocketStream, wait_writable_UNIX) {
int fds[2];
ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, fds));