• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/hardware/interfaces


Commit MetaInfo

Revisionfc0701b4e09d69373dc708e3c3752ce97044d7f5 (tree)
Time2018-04-28 09:43:14
AuthorBernie Innocenti <codewiz@goog...>
Commiterandroid-build-merger

Log Message

Fix NetdHidlTest.TestAddRemoveInterfaces()
am: 64848957ba

Change-Id: I6915ed661784663ae10cb593e1081ea9c8c688f3

Change Summary

Incremental Difference

--- a/net/netd/testutils/VtsHalNetNetdTestUtils.cpp
+++ b/net/netd/testutils/VtsHalNetNetdTestUtils.cpp
@@ -88,7 +88,8 @@ int countMatchingIpRules(const std::string& regexString) {
8888
8989 int countRulesForFwmark(const uint32_t fwmark) {
9090 // Skip top nibble, which differs between rules.
91- std::string regex = StringPrintf("from all fwmark 0x[0-9a-f]+%x/.* lookup ", fwmark);
91+ std::string regex =
92+ StringPrintf("from all fwmark 0x(%x|[0-9a-f]+%04x)/.* lookup ", fwmark, fwmark);
9293 return countMatchingIpRules(regex);
9394 }
9495