kdc: Do not announce via Bonjour when testing

Let's see if this fixes the GitHub Actions OS X CI.
This commit is contained in:
Nicolas Williams
2022-01-20 00:18:44 -06:00
parent 0c26edd468
commit 302250026c

View File

@@ -1163,7 +1163,7 @@ start_kdc(krb5_context context,
#endif #endif
#ifdef __APPLE__ #ifdef __APPLE__
if (do_bonjour > 0) if (!testing_flag && do_bonjour > 0)
bonjour_kid(context, config, argv0, NULL); bonjour_kid(context, config, argv0, NULL);
#endif #endif
@@ -1198,7 +1198,7 @@ start_kdc(krb5_context context,
#ifdef HAVE_FORK #ifdef HAVE_FORK
# ifdef __APPLE__ # ifdef __APPLE__
if (do_bonjour < 0) if (!testing_flag && do_bonjour < 0)
bonjour_kid(context, config, argv0, islive); bonjour_kid(context, config, argv0, islive);
# endif # endif