mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-14 11:30:10 -04:00
timer_test failed to compile if cmocka was enabled but threads were not
(cherry picked from commit c73e3175c7)
This commit is contained in:
parent
267758962c
commit
4c15bbfb50
1 changed files with 4 additions and 4 deletions
|
|
@ -36,14 +36,14 @@
|
|||
|
||||
#include "isctest.h"
|
||||
|
||||
/* Set to true (or use -v option) for verbose output */
|
||||
static bool verbose = false;
|
||||
|
||||
/*
|
||||
* This entire test requires threads.
|
||||
*/
|
||||
#ifdef ISC_PLATFORM_USETHREADS
|
||||
|
||||
/* Set to true (or use -v option) for verbose output */
|
||||
static bool verbose = false;
|
||||
|
||||
#define FUDGE_SECONDS 0 /* in absence of clock_getres() */
|
||||
#define FUDGE_NANOSECONDS 500000000 /* in absence of clock_getres() */
|
||||
|
||||
|
|
@ -569,6 +569,7 @@ purge(void **state) {
|
|||
isc_task_destroy(&task2);
|
||||
DESTROYLOCK(&mx);
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
main(int argc, char **argv) {
|
||||
|
|
@ -595,7 +596,6 @@ main(int argc, char **argv) {
|
|||
|
||||
return (cmocka_run_group_tests(tests, NULL, NULL));
|
||||
}
|
||||
#endif
|
||||
|
||||
#else /* HAVE_CMOCKA */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue