]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/seastar/tests/unit/network_interface_test.cc
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / seastar / tests / unit / network_interface_test.cc
index 8a70a1a7d3d0bc14e9ce07bf8a3b32211d3386a0..08e90041d6f1e32c752077268588c105d3a7569c 100644 (file)
@@ -76,6 +76,9 @@ SEASTAR_TEST_CASE(match_ipv6_scope) {
         // and that inet_address _without_ scope matches.
         BOOST_REQUIRE_EQUAL(net::inet_address(na.as_ipv6_address()), *i);
         BOOST_REQUIRE_EQUAL(na.scope(), nif.index());
+        // and that they are not ipv4 addresses
+        BOOST_REQUIRE_THROW(i->as_ipv4_address(), std::invalid_argument);
+        BOOST_REQUIRE_THROW(na.as_ipv4_address(), std::invalid_argument);
 
         niflog.info("Org: {}, Parsed: {}, Text: {}", *i, na, text);