liblog: test: liblog.android_logger_get_ failure

Change-Id: I8f74eca7857fe4cd6fa979d7bdeeda2b6a3e596b
This commit is contained in:
Mark Salyzyn 2015-12-01 12:47:43 -08:00
parent b566435b02
commit 7d8939ec1d
1 changed files with 3 additions and 3 deletions

View File

@ -611,11 +611,11 @@ TEST(liblog, android_logger_get_) {
struct logger * logger;
EXPECT_TRUE(NULL != (logger = android_logger_open(logger_list, id)));
EXPECT_EQ(id, android_logger_get_id(logger));
EXPECT_LT(0, android_logger_get_log_size(logger));
/* crash buffer is allowed to be empty, that is actually healthy! */
if (android_logger_get_log_size(logger) || strcmp("crash", name)) {
EXPECT_LT(0, android_logger_get_log_size(logger));
if (android_logger_get_log_readable_size(logger) || strcmp("crash", name)) {
EXPECT_LT(0, android_logger_get_log_readable_size(logger));
}
EXPECT_LT(0, android_logger_get_log_readable_size(logger));
EXPECT_LT(0, android_logger_get_log_version(logger));
}