#include "nstest.h"
+#if defined(USE_LIBTOOL) || LD_WRAP
static int
_setup(void **state) {
isc_result_t result;
ns_test_cleanup_zone();
isc_nmhandle_unref(client->handle);
}
+#endif
int
main(void) {
+#if defined(USE_LIBTOOL) || LD_WRAP
const struct CMUnitTest tests[] = {
cmocka_unit_test_setup_teardown(notify_start,
_setup, _teardown),
};
return (cmocka_run_group_tests(tests, NULL, NULL));
+#else
+ print_message("1..0 # Skip notify_test requires libtool or LD_WRAP\n");
+#endif
}
#else /* HAVE_CMOCKA && !__SANITIZE_ADDRESS__ */
#include "nstest.h"
+#if defined(USE_LIBTOOL) || LD_WRAP
static int
_setup(void **state) {
isc_result_t result;
run_start_test(&tests[i]);
}
}
+#endif
int
main(void) {
+#if defined(USE_LIBTOOL) || LD_WRAP
const struct CMUnitTest tests[] = {
cmocka_unit_test_setup_teardown(ns__query_sfcache_test,
_setup, _teardown),
};
return (cmocka_run_group_tests(tests, NULL, NULL));
+#else
+ print_message("1..0 # Skip query_test requires libtool or LD_WRAP\n");
+#endif
}
#else /* HAVE_CMOCKA && !__SANITIZE_ADDRESS__ */