Merge "Check the return value of setuid(2)." am: 155d2bcb7a

am: 4503269951

Change-Id: I2fc84f80f38f1afdddbdb4f7c1ca6ec0fe25f29d
This commit is contained in:
Jorge Lucangeli Obes 2017-01-13 18:10:46 +00:00 committed by android-build-merger
commit 4d7df0ffe5

View file

@ -1831,7 +1831,7 @@ TEST(liblog, __security_buffer) {
return;
}
setuid(AID_SYSTEM); // only one that can read security buffer
EXPECT_EQ(0, setuid(AID_SYSTEM)); // only one that can read security buffer
pid_t pid = getpid();