Merge "Only run GentleKill test as root" am: 120902971b am: 9879ebd747
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2427211 Change-Id: Ib2082ae0092092c3e21a4723fd881d2f8a8e9718 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
3034fd6cde
1 changed files with 4 additions and 0 deletions
|
|
@ -679,6 +679,10 @@ pid_t ForkExecvpAsync(const std::vector<std::string>& args) {
|
|||
}
|
||||
|
||||
TEST(init, GentleKill) {
|
||||
if (getuid() != 0) {
|
||||
GTEST_SKIP() << "Must be run as root.";
|
||||
return;
|
||||
}
|
||||
std::string init_script = R"init(
|
||||
service test_gentle_kill /system/bin/sleep 1000
|
||||
disabled
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue