*/
static isc_mutex_t lock;
-static isc_condition_t cv;
int counter = 0;
static int active[10];
static isc_boolean_t done = ISC_FALSE;
+#ifdef ISC_PLATFORM_USETHREADS
+static isc_condition_t cv;
+#endif
+
static void
set(isc_task_t *task, isc_event_t *event) {
int *value = (int *) event->ev_arg;
isc_test_end();
}
+/*
+ * The remainder of these tests require threads
+ */
+#ifdef ISC_PLATFORM_USETHREADS
/*
* Max tasks test:
* The task system can create and execute many tasks. Tests with 10000.
ATF_TC_BODY(purgeevent_notpurge, tc) {
try_purgeevent(ISC_FALSE);
}
+#endif
/*
* Main
#include "isctest.h"
+/*
+ * This entire test requires threads.
+ */
+#ifdef ISC_PLATFORM_USETHREADS
+
/*
* Helper functions
*/
isc_test_end();
}
+#else
+ATF_TC(untested);
+ATF_TC_HEAD(untested, tc) {
+ atf_tc_set_md_var(tc, "descr", "skipping nsec3 test");
+}
+ATF_TC_BODY(untested, tc) {
+ UNUSED(tc);
+ atf_tc_skip("DNSSEC not available");
+}
+#endif
/*
* Main
ATF_TP_ADD_TC(tp, once_idle);
ATF_TP_ADD_TC(tp, reset);
ATF_TP_ADD_TC(tp, purge);
+#else
+ ATF_TP_ADD_TC(tp, untested);
#endif
return (atf_no_error());