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

Commit eeaff65a authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "binderRpcTest: allow unsupported vsock family"

parents aa763638 a27311bb
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{