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

Commit 0a7cdadd authored by Luke Huang's avatar Luke Huang
Browse files

Fix dnsresolver binder log test failure in Q

The leading blank character is different between Q/R, fix it.

Test: atest
Bug: 176060363
Change-Id: Icc39c3aa512cbed3869289c2b2d151f7bbb537f9
parent 7b2978e7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -121,8 +121,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.
        const std::basic_regex lineRegex(
                "^      [0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}[.][0-9]{3} "
                "^ {4,6}[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}[.][0-9]{3} "
                "(.*)"
                " <[0-9]+[.][0-9]{2}ms>$");