Merge "liblog: test: liblog.android_logger_get_ failure"

am: 8ca9a775f7

* commit '8ca9a775f7d8a5db68c7b42ec42aad969bd6d5e3':
  liblog: test: liblog.android_logger_get_ failure
This commit is contained in:
Mark Salyzyn 2015-12-07 23:16:48 +00:00 committed by android-build-merger
commit 28a96aeedc

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));
}