Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a27311bb authored by Steven Moreland's avatar Steven Moreland
Browse files

binderRpcTest: allow unsupported vsock family

Bug: 268131636
Test: binderRpcTest on host
Change-Id: Iaabec8d78e9e2307c6165621954f2570268c3d8f
parent ba9df0b0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1126,6 +1126,11 @@ static bool testSupportVsockLoopback() {

    android::base::unique_fd serverFd(
            TEMP_FAILURE_RETRY(socket(AF_VSOCK, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0)));

    if (errno == EAFNOSUPPORT) {
        return false;
    }

    LOG_ALWAYS_FATAL_IF(serverFd == -1, "Could not create socket: %s", strerror(errno));

    sockaddr_vm serverAddr{