diff --git a/liblog/tests/liblog_test.cpp b/liblog/tests/liblog_test.cpp index 02feb9767..ec0352eea 100644 --- a/liblog/tests/liblog_test.cpp +++ b/liblog/tests/liblog_test.cpp @@ -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();