]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Undo the FreeBSD specific retval test 40797/head
authorWillem Jan Withagen <wjw@digiware.nl>
Sun, 11 Apr 2021 14:27:35 +0000 (16:27 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Mon, 12 Apr 2021 08:36:28 +0000 (10:36 +0200)
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 <wjw@digiware.nl>
src/test/mon/MonMap.cc

index c9bcb7fec0835917b6b6b9eae67583ace74b17a3..81b054a9048f17cdebdf6a963b39f06dfe69def5 100644 (file)
@@ -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
 }