From: Willem Jan Withagen Date: Wed, 11 Nov 2020 14:09:12 +0000 (+0100) Subject: test/mon: Accept ENOENT as returned value on FreeBSD X-Git-Tag: v17.0.0~639^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5ae482797078cb38529102fc1c9411507e6414cd;p=ceph-ci.git test/mon: Accept ENOENT as returned value on FreeBSD FreeBSD returns ENOENT on resolv error Tracker: https://tracker.ceph.com/issues/48183 Signed-off-by: Willem Jan Withagen --- diff --git a/src/test/mon/MonMap.cc b/src/test/mon/MonMap.cc index 81b054a9048..c9bcb7fec08 100644 --- a/src/test/mon/MonMap.cc +++ b/src/test/mon/MonMap.cc @@ -237,5 +237,9 @@ TEST(MonMapBuildInitial, build_initial_mon_host_from_dns_fail) { cct->_conf.set_val("mon_host", "ceph.noname"); MonMap monmap; int r = monmap.build_initial(cct.get(), false, std::cerr); +#if defined(__FreeBSD__) + ASSERT_EQ(r, -ENOENT); +#else ASSERT_EQ(r, -EINVAL); +#endif }