Fix skipped test being marked as [FAIL] in logcat.
Change-Id: I8f9530af04900aad3ee176ed5e7bcba8b115fa40
diff --git a/test/gtest_logcat_printer.cc b/test/gtest_logcat_printer.cc
index f88e01b..a78fa88 100644
--- a/test/gtest_logcat_printer.cc
+++ b/test/gtest_logcat_printer.cc
@@ -58,8 +58,14 @@
void LogcatPrinter::OnTestEnd(const testing::TestInfo& test_info) {
const auto* result = test_info.result();
const char* state = "N/A";
- if (result)
- state = result->Passed() ? "PASS" : "FAIL";
+ if (result) {
+ if (result->Passed())
+ state = "PASS";
+ else if (result->Skipped())
+ state = "SKIPPED";
+ else if (result->Failed())
+ state = "FAIL";
+ }
PERFETTO_TEST_LOG("Test end: %s.%s [%s]", test_info.test_case_name(),
test_info.name(), state);
}