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

Commit 736288d4 authored by Nikita Ioffe's avatar Nikita Ioffe Committed by Automerger Merge Worker
Browse files

Merge "Only run RebootTest under root" into sc-dev am: bfa4e30b

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/15132987

Change-Id: Ie9fc9a512624f2e2a4f8fb0647b68089f6fb7574
parents 52b10f79 bfa4e30b
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -113,6 +113,11 @@ service $name /system/bin/yes
}

TEST_F(RebootTest, StopServicesSIGTERM) {
    if (getuid() != 0) {
        GTEST_SKIP() << "Skipping test, must be run as root.";
        return;
    }

    AddTestService("A");
    AddTestService("B");

@@ -148,6 +153,11 @@ TEST_F(RebootTest, StopServicesSIGTERM) {
}

TEST_F(RebootTest, StopServicesSIGKILL) {
    if (getuid() != 0) {
        GTEST_SKIP() << "Skipping test, must be run as root.";
        return;
    }

    AddTestService("A");
    AddTestService("B");