// being suspended. This indicates that Dhcp4Srv's error handler has been
// invoked as expected. Note that this unit test relies on an attempt to send
// to a server address of 0.0.0.0 port 0 fails, which it does under all OSes
-// except Solaris 11.
+// except Solaris 11 and macOS 15.0.
/// @todo Eventually we should find a way to test this under Solaris.
-#ifndef OS_SOLARIS
+#if (!defined(OS_SOLARIS) && !defined(OS_OSX))
TEST_F(Dhcp4SrvD2Test, forceUDPSendFailure) {
#else
TEST_F(Dhcp4SrvD2Test, DISABLED_forceUDPSendFailure) {
// being suspended. This indicates that Dhcp6Srv's error handler has been
// invoked as expected. Note that this unit test relies on an attempt to send
// to a server address of 0.0.0.0 port 0 fails, which it does under all OSs
-// except Solaris 11.
+// except Solaris 11 and macOS 15.0.
/// @todo Eventually we should find a way to test this under Solaris.
-#ifndef OS_SOLARIS
+#if (!defined(OS_SOLARIS) && !defined(OS_OSX))
TEST_F(Dhcp6SrvD2Test, forceUDPSendFailure) {
#else
TEST_F(Dhcp6SrvD2Test, DISABLED_forceUDPSendFailure) {