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

Commit 78c19cb4 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

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I07b2451d8a3897245947d365fc2924ad07ada9a0
parents 403771af 3afd0236
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line 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
        // 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.
        // puts the output of the command itself into the first match group.
        // Example: "      11-05 00:23:39.481 myCommand(args) <2.02ms>".
        // 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(
        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>$");
                " <[0-9]+[.][0-9]{2}ms>$");