diff options
author | Mark Salyzyn <salyzyn@google.com> | 2018-07-25 10:59:27 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2018-07-25 10:59:27 -0700 |
commit | 2ee7d5fddfd437f35159ebe0db2127913a3a85a7 (patch) | |
tree | ba34f4a27c4a408d5d5e58f606a2d07c8f50da4a | |
parent | fe0c3f99d20afc0e0ab6c6ecc1401d06349b6e09 (diff) |
Remove pstore case libc.__pstore_append from CTS
Bug: 110118705
Bug: 110761200
Test: partners verified
Change-Id: I946c645af0cfb3f3b0e9344c51940da226fd08ce
-rw-r--r-- | liblog/tests/libc_test.cpp | 4 |
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 @@ TEST(libc, __pstore_append) { #ifdef __ANDROID__ +#ifndef NO_PSTORE FILE* fp; ASSERT_TRUE(NULL != (fp = fopen("/dev/pmsg0", "a"))); static const char message[] = "libc.__pstore_append\n"; @@ -43,6 +44,9 @@ TEST(libc, __pstore_append) { "Reboot, ensure string libc.__pstore_append is in " "/sys/fs/pstore/pmsg-ramoops-0\n"); } +#else /* NO_PSTORE */ + GTEST_LOG_(INFO) << "This test does nothing because of NO_PSTORE.\n"; +#endif /* NO_PSTORE */ #else GTEST_LOG_(INFO) << "This test does nothing.\n"; #endif |