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

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

binderRpcTest: fix on host

New delegate tests failing.

For some reason, other kernel binder tests
not disabled on host? Not sure how they broke.

Fixes: 416355885
Test: binderRpcTest (on host)
Change-Id: If1b689826a06fc037257aef9b3c7b85ee025ffe8
parent 81acc44a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -305,6 +305,9 @@ cc_defaults {
        android: {
            test_suites: ["vts"],
        },
        host: {
            cflags: ["-DBINDER_NO_KERNEL_IPC_TESTING"],
        },
    },
    defaults: [
        "binderRpcTest_common_defaults",
+5 −0
Original line number Diff line number Diff line
@@ -1721,6 +1721,11 @@ TEST_F(BinderARpcNdk, ARpcDelegateAccessorWrongInstance) {
}

TEST_F(BinderARpcNdk, ARpcDelegateNonAccessor) {
    // TODO: test in environments we can get a proxied service?
#ifndef __BIONIC__
    GTEST_SKIP() << "Can only get AIDL services on device.";
#endif

    auto service = defaultServiceManager()->checkService(String16(kKnownAidlService));
    ASSERT_NE(nullptr, service);
    ndk::SpAIBinder binder = ndk::SpAIBinder(AIBinder_fromPlatformBinder(service));