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

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

binderRpcTest: hermiticity - salt UDS name w/ PID

When binderRpcTest, binderRpcTestNoKernel, etc.. run at the same
time, they sometimes conflict. It seems the infra has started running
them at the same time (suspected).

Bug: 271860373
Test: binderRpcTest
Change-Id: I29d441cb3126b8960c5a30debca7b20cc1723863
parent 65fac116
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -129,7 +129,7 @@ private:
static std::string allocateSocketAddress() {
    static size_t id = 0;
    std::string temp = getenv("TMPDIR") ?: "/tmp";
    auto ret = temp + "/binderRpcTest_" + std::to_string(id++);
    auto ret = temp + "/binderRpcTest_" + std::to_string(getpid()) + "_" + std::to_string(id++);
    unlink(ret.c_str());
    return ret;
};