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

Commit 1ce9cd1a authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "binderRpcTest: work when vsock not supported" am: bf5fdedf am:...

Merge "binderRpcTest: work when vsock not supported" am: bf5fdedf am: 81809fac am: 43f81cef am: 4c43b157

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1788713

Change-Id: Ied4daac3d9d9b0b99639e58fae1b68ea1f7c1d22
parents af133ae1 4c43b157
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1196,7 +1196,12 @@ static bool testSupportVsockLoopback() {
    unsigned int vsockPort = allocateVsockPort();
    sp<RpcServer> server = RpcServer::make(RpcTransportCtxFactoryRaw::make());
    server->iUnderstandThisCodeIsExperimentalAndIWillNotUseItInProduction();
    CHECK_EQ(OK, server->setupVsockServer(vsockPort));
    if (status_t status = server->setupVsockServer(vsockPort); status != OK) {
        if (status == -EAFNOSUPPORT) {
            return false;
        }
        LOG_ALWAYS_FATAL("Could not setup vsock server: %s", statusToString(status).c_str());
    }
    server->start();

    sp<RpcSession> session = RpcSession::make(RpcTransportCtxFactoryRaw::make());