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

Commit 2694b5f8 authored by Luke Huang's avatar Luke Huang Committed by Automerger Merge Worker
Browse files

Ease the log format restriction in resolver binder test am: 3afd0236 am: 78c19cb4

Original change: https://android-review.googlesource.com/c/platform/packages/modules/DnsResolver/+/1624599

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I741af4eab489867049202ea49f8910267111ff7f
parents aa7664fc 78c19cb4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -123,9 +123,9 @@ class DnsResolverBinderTest : public ::testing::Test {
        // Basic regexp to match dump output lines. Matches the beginning and end of the line, and
        // puts the output of the command itself into the first match group.
        // Example: "      11-05 00:23:39.481 myCommand(args) <2.02ms>".
        // Note: There are 4 leading blank characters in Q, but 6 in R.
        // Accept any number of the leading space.
        const std::basic_regex lineRegex(
                "^ {4,6}[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}[.][0-9]{3} "
                "^\\s*[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}[.][0-9]{3} "
                "(.*)"
                " <[0-9]+[.][0-9]{2}ms>$");