Merge "liblog: require root for multi_connect_dgram_socket test" into rvc-dev am: 67a92651a2 am: b7da236617 am: 8331d6ad81

Change-Id: Ibb52abbc7aedc782825e6f7837cc94da91d6a76f
This commit is contained in:
TreeHugger Robot 2020-05-01 20:04:33 +00:00 committed by Automerger Merge Worker
commit a6c5f91269
1 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,10 @@ using android::base::unique_fd;
// socket. This tests for that behavior.
TEST(liblog, multi_connect_dgram_socket) {
#ifdef __ANDROID__
if (getuid() != 0) {
GTEST_SKIP() << "Skipping test, must be run as root.";
return;
}
auto temp_dir = TemporaryDir();
auto socket_path = StringPrintf("%s/test_socket", temp_dir.path);