Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
4c15bbfb
Commit
4c15bbfb
authored
Feb 20, 2019
by
Evan Hunt
Browse files
timer_test failed to compile if cmocka was enabled but threads were not
(cherry picked from commit
c73e3175
)
parent
26775896
Pipeline
#10271
passed with stages
in 11 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/isc/tests/timer_test.c
View file @
4c15bbfb
...
...
@@ -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 */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment