From a5f1e742601aa0281cb2a170a97160dc35220ec3 Mon Sep 17 00:00:00 2001 From: Ghanan Gowripalan Date: Thu, 27 Aug 2020 13:43:47 -0700 Subject: 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 --- test/syscalls/linux/socket_ipv6_udp_unbound_netlink.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/syscalls/linux') diff --git a/test/syscalls/linux/socket_ipv6_udp_unbound_netlink.cc b/test/syscalls/linux/socket_ipv6_udp_unbound_netlink.cc index 6275b5aed..539a4ec55 100644 --- a/test/syscalls/linux/socket_ipv6_udp_unbound_netlink.cc +++ b/test/syscalls/linux/socket_ipv6_udp_unbound_netlink.cc @@ -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()); -- cgit v1.2.3