lmkd/tests: add 200ms wait for reaper to output its logs am: 753642e31a am: cad7196508
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/3134321 Change-Id: I5e0ecf5684489208d36f1bb93f8a3b159077ebfa Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
2606f9849b
|
|
@ -210,6 +210,9 @@ TEST_F(LmkdTest, TargetReaping) {
|
||||||
FAIL() << "Target process " << pid << " was not killed";
|
FAIL() << "Target process " << pid << " was not killed";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// wait 200ms for the reaper thread to write its output in the logcat
|
||||||
|
usleep(200000);
|
||||||
|
|
||||||
std::string regex = StringPrintf("((" LMKD_KILL_TEMPLATE ")|(" LMKD_REAP_TEMPLATE
|
std::string regex = StringPrintf("((" LMKD_KILL_TEMPLATE ")|(" LMKD_REAP_TEMPLATE
|
||||||
")|(" LMKD_REAP_FAIL_TEMPLATE "))",
|
")|(" LMKD_REAP_FAIL_TEMPLATE "))",
|
||||||
pid, pid, pid);
|
pid, pid, pid);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue