summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--liblog/tests/libc_test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/liblog/tests/libc_test.cpp b/liblog/tests/libc_test.cpp
index 329ba8585..6d78ed6db 100644
--- a/liblog/tests/libc_test.cpp
+++ b/liblog/tests/libc_test.cpp
@@ -21,6 +21,7 @@
21 21
22TEST(libc, __pstore_append) { 22TEST(libc, __pstore_append) {
23#ifdef __ANDROID__ 23#ifdef __ANDROID__
24#ifndef NO_PSTORE
24 FILE* fp; 25 FILE* fp;
25 ASSERT_TRUE(NULL != (fp = fopen("/dev/pmsg0", "a"))); 26 ASSERT_TRUE(NULL != (fp = fopen("/dev/pmsg0", "a")));
26 static const char message[] = "libc.__pstore_append\n"; 27 static const char message[] = "libc.__pstore_append\n";
@@ -43,6 +44,9 @@ TEST(libc, __pstore_append) {
43 "Reboot, ensure string libc.__pstore_append is in " 44 "Reboot, ensure string libc.__pstore_append is in "
44 "/sys/fs/pstore/pmsg-ramoops-0\n"); 45 "/sys/fs/pstore/pmsg-ramoops-0\n");
45 } 46 }
47#else /* NO_PSTORE */
48 GTEST_LOG_(INFO) << "This test does nothing because of NO_PSTORE.\n";
49#endif /* NO_PSTORE */
46#else 50#else
47 GTEST_LOG_(INFO) << "This test does nothing.\n"; 51 GTEST_LOG_(INFO) << "This test does nothing.\n";
48#endif 52#endif