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

Commit df161a4d authored by Yi Kong's avatar Yi Kong
Browse files

Fix string-compare warning

packages/modules/DnsResolver/tests/resolv_private_dns_test.cpp:1096:51: error: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Werror,-Wstring-compare]
        EXPECT_EQ(doh.resumedConnections(), (flag == "1" ? 2 : 0));
                                                  ^  ~~~

Test: presubmit
Bug: 153764102
Change-Id: I82ba5615c75a9d0eb277ac3dc753e442169fc4d9
parent 6eb31445
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1093,7 +1093,7 @@ TEST_F(PrivateDnsDohTest, SessionResumption) {

        EXPECT_NO_FAILURE(expectQueries(0 /* dns */, 0 /* dot */, 2 /* doh */));
        EXPECT_EQ(doh.connections(), 3);
        EXPECT_EQ(doh.resumedConnections(), (flag == "1" ? 2 : 0));
        EXPECT_EQ(doh.resumedConnections(), (strcmp(flag, "1") ? 0 : 2));
    }
}