Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 617dc19b authored by Mark Salyzyn's avatar Mark Salyzyn Committed by Android Git Automerger
Browse files

am 2a3e5be6: am 10c18d64: Merge "liblog: gtest open("/dev/pmsg0", "a")"

* commit '2a3e5be6':
  liblog: gtest open("/dev/pmsg0", "a")
parents bb50775b 2a3e5be6
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -136,3 +136,12 @@ TEST(libc, __libc_fatal_no_abort) {

    android_logger_list_close(logger_list);
}

TEST(libc, __pstore_append) {
    FILE *fp;
    ASSERT_TRUE(NULL != (fp = fopen("/dev/pmsg0", "a")));
    static const char message[] = "libc.__pstore_append\n";
    ASSERT_EQ((size_t)1, fwrite(message, sizeof(message), 1, fp));
    ASSERT_EQ(0, fclose(fp));
    fprintf(stderr, "Reboot, ensure string libc.__pstore_append is in /sys/fs/pstore/pmsg-ramoops-0\n");
}