diff options
author | Ghanan Gowripalan <ghanan@google.com> | 2020-08-27 13:43:47 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-08-27 13:45:36 -0700 |
commit | a5f1e742601aa0281cb2a170a97160dc35220ec3 (patch) | |
tree | f883d91af289b56f0483c9b62ac0ed0b2e303d0e /test | |
parent | dc81eb9c37873e391a927a6f6810239565a91732 (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.cc | 5 |
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()); |