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

Skip to content
Commit bf1c0e3c authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by Maciej Żenczykowski
Browse files

Fix NetdBinderTest#InitialNetworksExist.

This test creates a socket with an implicit mark for an invalid
network (dummy or local), calls connect() on it, and expects
ENETUNREACH. Unfortunately this doesn't work because the connect()
overwrites the implicit mark with the default network mark, and
if the default network has IPv6 connectivity, the connect will
succeed.

Fix this by using an explicitly selected mark instead.

Bug: 179445508
Test: netd_integration_test passes with fix, fails without
Change-Id: Ib7848454e17d22cc58dfd096630d9d7ce503de04
parent 0dcdf194
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment