Loading tests/resolv_integration_test.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -154,6 +154,12 @@ struct NameserverStats { const bool isAtLeastR = (getApiLevel() >= 30); #define SKIP_IF_KERNEL_VERSION_LOWER_THAN(major, minor, sub) \ do { \ if (!android::bpf::isAtLeastKernelVersion(major, minor, sub)) \ GTEST_SKIP() << "Required kernel: " << (major) << "." << (minor) << "." << (sub); \ } while (0) } // namespace class ResolverTest : public NetNativeTestBase { Loading Loading @@ -7513,6 +7519,10 @@ TEST_F(ResolverMultinetworkTest, IPv6LinkLocalWithDefaultRoute) { // v6 mdns is expected to be sent when the IPv6 address is a link-local with a default route. TEST_F(ResolverMultinetworkTest, MdnsIPv6LinkLocalWithDefaultRoute) { // Kernel 4.4 does not provide an IPv6 link-local address when an interface is added to a // network. Skip it because v6 link-local address is a prerequisite for this test. SKIP_IF_KERNEL_VERSION_LOWER_THAN(4, 9, 0); constexpr char v6addr[] = "::127.0.0.3"; constexpr char v4addr[] = "127.0.0.3"; constexpr char host_name[] = "hello.local."; Loading Loading
tests/resolv_integration_test.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -154,6 +154,12 @@ struct NameserverStats { const bool isAtLeastR = (getApiLevel() >= 30); #define SKIP_IF_KERNEL_VERSION_LOWER_THAN(major, minor, sub) \ do { \ if (!android::bpf::isAtLeastKernelVersion(major, minor, sub)) \ GTEST_SKIP() << "Required kernel: " << (major) << "." << (minor) << "." << (sub); \ } while (0) } // namespace class ResolverTest : public NetNativeTestBase { Loading Loading @@ -7513,6 +7519,10 @@ TEST_F(ResolverMultinetworkTest, IPv6LinkLocalWithDefaultRoute) { // v6 mdns is expected to be sent when the IPv6 address is a link-local with a default route. TEST_F(ResolverMultinetworkTest, MdnsIPv6LinkLocalWithDefaultRoute) { // Kernel 4.4 does not provide an IPv6 link-local address when an interface is added to a // network. Skip it because v6 link-local address is a prerequisite for this test. SKIP_IF_KERNEL_VERSION_LOWER_THAN(4, 9, 0); constexpr char v6addr[] = "::127.0.0.3"; constexpr char v4addr[] = "127.0.0.3"; constexpr char host_name[] = "hello.local."; Loading