test_libs = \
$(noinst_LTLIBRARIES) \
+ ../lib-master/libmaster.la \
+ ../lib-ssl-iostream/libssl_iostream.la \
../lib-settings/libsettings.la \
../lib-dns/libdns.la \
../lib-var-expand/libvar_expand.la \
+ ../lib-regex/libdregex.la \
../lib-test/libtest.la \
../lib/liblib.la \
$(MODULE_LIBS)
#include "write-full.h"
#include "connection.h"
#include "master-interface.h"
-#include "master-service.h"
+#include "master-service-private.h"
#include "test-common.h"
#include "test-subprocess.h"
#define TEST_SOCKET "./auth-master-test"
#define SERVER_KILL_TIMEOUT_SECS 20
-struct master_service *master_service = NULL;
-
static void main_deinit(void);
/*
/* nothing yet; also called from sub-processes */
}
-bool master_service_is_killed(struct master_service *service ATTR_UNUSED)
-{
- return FALSE;
-}
-
int main(int argc, char *argv[])
{
int c;
lib_init();
main_init();
+ /* A bit ugly way to initialize master_service. We just need it to
+ not be NULL for master_service_is_killed(). */
+ master_service = t_new(struct master_service, 1);
while ((c = getopt(argc, argv, "D")) > 0) {
switch (c) {