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

Commit ca29309e authored by Andrei Homescu's avatar Andrei Homescu
Browse files

binder: Use a smaller "large vector" size with TIPC

Reduce the SendLargeVector test size in binderRpcTest
for the TIPC socket type because the qemu emulator is too
slow and the test takes too long.

Bug: 425451705
Test: build.py --test "binder" qemu-generic-arm64-gicv3-test-debug
Flag: EXEMPT test
Change-Id: If402bed06522c362c82a122e890fd4c25ab44c39
parent 1e88a722
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -213,7 +213,8 @@ TEST_P(BinderRpc, SendLargeVector) {
    auto proc = createRpcTestSocketServerProcess({});

    // see libbinder internal Constants.h
    const size_t kLargeSize = 15 * 1024 * 1024;
    // We use a smaller size for TIPC because a 15MB test is too slow and times out
    size_t kLargeSize = socketType() == SocketType::TIPC ? 128 * 1024 : 15 * 1024 * 1024;
    const std::vector<uint8_t> kTestValue(kLargeSize / sizeof(uint8_t), 42);

    std::vector<uint8_t> result;