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

Commit 97a14113 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "binderRpcTest: allow unsupported vsock family" am: eeaff65a

parents 86c34e14 eeaff65a
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{