From 130dbc772526a4a2cee492252f3b73c3140dea8f Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Sun, 11 Apr 2021 16:27:35 +0200 Subject: [PATCH] test: Undo the FreeBSD specific retval test Changes to the socket code now result in returning EINVAL In the past ENOENT was returned which is the FreeBSD error code if DNS lookup does not work. And that change is probably because somewhere in the code that errorcode is not passed verbatim from the systemcall, but is rewritten in extra evaluation. Signed-off-by: Willem Jan Withagen --- src/test/mon/MonMap.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/test/mon/MonMap.cc b/src/test/mon/MonMap.cc index c9bcb7fec08..81b054a9048 100644 --- a/src/test/mon/MonMap.cc +++ b/src/test/mon/MonMap.cc @@ -237,9 +237,5 @@ 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 } -- 2.39.5