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

Commit b7fd65c7 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:...

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

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I069ed6a2eaee5b37d71104d92b023eadfbed8365
parents 0f1dfa67 2694b5f8
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>$");