summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGhanan Gowripalan <ghanan@google.com>2020-08-27 13:43:47 -0700
committerAndrei Vagin <avagin@gmail.com>2020-09-09 17:53:10 -0700
commit5ec86b76aa71417c09347253027ebbc33d4b3123 (patch)
treef883d91af289b56f0483c9b62ac0ed0b2e303d0e /test
parent5d449c870622f7088825af5650786e8bb755567a (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/syscalls/linux/socket_ipv6_udp_unbound_netlink.cc5
1 files changed, 4 insertions, 1 deletions
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());