commit | 76607e5b0704df5aa8c5ccbbb9d6ae65c9adb297 | [log] [tgz] |
---|---|---|
author | Daniel Rosenberg <drosen@google.com> | Tue Apr 11 01:14:17 2023 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Apr 11 01:14:17 2023 +0000 |
tree | f3e1c2daa559e349d273e5cf4a5f82dd16191e7d | |
parent | 152de539df058c3affc09f15c9882aba93d2ab86 [diff] | |
parent | b8baa8dd34d4cc7b2fa5717495340999deb097ee [diff] |
Merge "Require root for StartConsole Test"
diff --git a/init/init_test.cpp b/init/init_test.cpp index 305bf95..0fc3ffc 100644 --- a/init/init_test.cpp +++ b/init/init_test.cpp
@@ -204,6 +204,10 @@ GTEST_SKIP() << "Must run on userdebug/eng builds. b/262090304"; return; } + if (getuid() != 0) { + GTEST_SKIP() << "Must be run as root."; + return; + } std::string init_script = R"init( service console /system/bin/sh class core