• 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

Revisionf60452177644f04e34f06e7600a88d934c1c1662 (tree)
Time2018-04-28 09:50:40
AuthorBernie Innocenti <codewiz@goog...>
Commiterandroid-build-merger

Log Message

Fix NetdHidlTest.TestAddRemoveInterfaces() am: 64848957ba
am: fc0701b4e0

Change-Id: I1f90f51156393b94853edf75b95fb932798d56dd

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