lmkd_test: set process types
We introduced supporting process type while registering a process in lmkd. Thus we need to set process type when registering the test unit or lmkd would not be able to kill it. Bug: 143857475 Test: Verified using lmkd_unit_test Change-Id: I7bf2b552c242dbdc13bb431248ec9182dccaa599
This commit is contained in:
parent
2171a0c2f4
commit
fce58e9165
|
|
@ -251,6 +251,7 @@ void runMemStressTest() {
|
||||||
params.pid = pid;
|
params.pid = pid;
|
||||||
params.uid = uid;
|
params.uid = uid;
|
||||||
params.oomadj = data->oomadj;
|
params.oomadj = data->oomadj;
|
||||||
|
params.ptype = PROC_TYPE_APP;
|
||||||
ASSERT_FALSE(lmkd_register_proc(sock, ¶ms) < 0)
|
ASSERT_FALSE(lmkd_register_proc(sock, ¶ms) < 0)
|
||||||
<< "Failed to communicate with lmkd, err=" << strerror(errno);
|
<< "Failed to communicate with lmkd, err=" << strerror(errno);
|
||||||
// signal the child it can proceed
|
// signal the child it can proceed
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue