summaryrefslogtreecommitdiffstats
path: root/liblog/tests
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-06-03 09:29:11 -0700
committerMark Salyzyn <salyzyn@google.com>2014-06-03 09:29:11 -0700
commit90aa3d59a5e4b6d348597f1941bb3ab42b3c1f8e (patch)
tree325f87d71c80bb6c5c81bb132bea0e087d34499d /liblog/tests
parent82015d4f127219700992f8800118fd9c388e3c99 (diff)
downloadsystem_core-90aa3d59a5e4b6d348597f1941bb3ab42b3c1f8e.zip
system_core-90aa3d59a5e4b6d348597f1941bb3ab42b3c1f8e.tar.gz
system_core-90aa3d59a5e4b6d348597f1941bb3ab42b3c1f8e.tar.bz2
liblog: test: Send bionc's fatal logging to the crash log
Bug: 14159417 Change-Id: Ia2e29ce03d4e2b02919c62be091da37ce4082647
Diffstat (limited to 'liblog/tests')
-rw-r--r--liblog/tests/libc_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/liblog/tests/libc_test.cpp b/liblog/tests/libc_test.cpp
index 0abc375..9839729 100644
--- a/liblog/tests/libc_test.cpp
+++ b/liblog/tests/libc_test.cpp
@@ -99,7 +99,7 @@ TEST(libc, __libc_fatal_no_abort) {
pid_t pid = getpid();
ASSERT_TRUE(NULL != (logger_list = android_logger_list_open(
- (log_id_t)LOG_ID_MAIN, O_RDONLY | O_NDELAY, 1000, pid)));
+ (log_id_t)LOG_ID_CRASH, O_RDONLY | O_NDELAY, 1000, pid)));
char b[80];
struct timespec ts;
@@ -119,7 +119,7 @@ TEST(libc, __libc_fatal_no_abort) {
ASSERT_EQ(log_msg.entry.pid, pid);
- if ((int)log_msg.id() != LOG_ID_MAIN) {
+ if ((int)log_msg.id() != LOG_ID_CRASH) {
continue;
}