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

Commit 7c1cdd77 authored by Andreas Gampe's avatar Andreas Gampe
Browse files

Base: Fix logging_test

Update the expected logging pattern.

Bug: 31338270
Test: mmma system/core/base && adb sync && adb shell /data/nativetest/libbase_test/libbase_test32
Change-Id: I299620669126bc0258cad6e30d5b40bff5ea92ad
parent f74553f8
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -126,7 +126,12 @@ std::string make_log_pattern(android::base::LogSeverity severity,
  char log_char = log_characters[severity];
  std::string holder(__FILE__);
  return android::base::StringPrintf(
      "%c[[:space:]]+[[:digit:]]+[[:space:]]+[[:digit:]]+ %s:[[:digit:]]+] %s",
      "%c[[:space:]]+"
      "[[:digit:]]+-[[:digit:]]+[[:space:]]+"
      "[[:digit:]]+:[[:digit:]]+:[[:digit:]]+[[:space:]]+"
      "[[:digit:]]+[[:space:]]+"
      "[[:digit:]]+[[:space:]]+"
      "%s:[[:digit:]]+] %s",
      log_char, basename(&holder[0]), message);
}