Skip IPv6UDPUnboundSocketNetlinkTest on native linux

...while we figure out of we want to consider the loopback interface
bound to all IPs in an assigned IPv6 subnet, or not (to maintain
compatibility with Linux).

PiperOrigin-RevId: 328807974
This commit is contained in:
Ghanan Gowripalan
2020-08-27 13:45:36 -07:00
committed by gVisor bot
parent dc81eb9c37
commit a5f1e74260
@@ -26,7 +26,10 @@ namespace testing {
// Checks that the loopback interface considers itself bound to all IPs in an
// associated subnet.
TEST_P(IPv6UDPUnboundSocketNetlinkTest, JoinSubnet) {
SKIP_IF(!ASSERT_NO_ERRNO_AND_VALUE(HaveCapability(CAP_NET_ADMIN)));
// TODO(b/166440211): Only run this test on gvisor or remove if the loopback
// interface should not consider itself bound to all IPs in an IPv6 subnet.
SKIP_IF(!IsRunningOnGvisor() ||
!ASSERT_NO_ERRNO_AND_VALUE(HaveCapability(CAP_NET_ADMIN)));
// Add an IP address to the loopback interface.
Link loopback_link = ASSERT_NO_ERRNO_AND_VALUE(LoopbackLink());