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

Commit 12090297 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Only run GentleKill test as root"

parents d9098252 2f050868
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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