diff --git a/logd/tests/logd_test.cpp b/logd/tests/logd_test.cpp index 957fdb5bf..4bea4bee6 100644 --- a/logd/tests/logd_test.cpp +++ b/logd/tests/logd_test.cpp @@ -503,13 +503,11 @@ TEST(logd, both) { (user_logger_content) ? yes : no, (kernel_logger_available) ? yes : no, (kernel_logger_content) ? yes : no, - (user_logger_available && kernel_logger_available) ? "WARNING" : "ok", + (user_logger_available && kernel_logger_available) ? "ERROR" : "ok", (user_logger_content && kernel_logger_content) ? "ERROR" : "ok"); - if (user_logger_available && kernel_logger_available) { - printf("WARNING: kernel & user logger; both consuming resources!!!\n"); - } - + EXPECT_EQ(0, user_logger_available && kernel_logger_available); + EXPECT_EQ(0, !user_logger_available && !kernel_logger_available); EXPECT_EQ(0, user_logger_content && kernel_logger_content); EXPECT_EQ(0, !user_logger_content && !kernel_logger_content); }