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:
Suren Baghdasaryan 2024-08-12 21:24:46 +00:00 committed by Automerger Merge Worker
commit 2606f9849b
1 changed files with 3 additions and 0 deletions

View File

@ -210,6 +210,9 @@ TEST_F(LmkdTest, TargetReaping) {
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
")|(" LMKD_REAP_FAIL_TEMPLATE "))",
pid, pid, pid);