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
e98ec51b
Commit
e98ec51b
authored
Mar 10, 2018
by
Evan Hunt
Browse files
Fix compiler warnings and test failures when building without threads
(cherry picked from commit
56353aaf
)
parent
8da54db7
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/isc/tests/task_test.c
View file @
e98ec51b
...
...
@@ -35,11 +35,14 @@
*/
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
;
...
...
@@ -641,6 +644,10 @@ ATF_TC_BODY(task_exclusive, tc) {
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.
...
...
@@ -1438,6 +1445,7 @@ ATF_TC_HEAD(purgeevent_notpurge, tc) {
ATF_TC_BODY
(
purgeevent_notpurge
,
tc
)
{
try_purgeevent
(
ISC_FALSE
);
}
#endif
/*
* Main
...
...
lib/isc/tests/timer_test.c
View file @
e98ec51b
...
...
@@ -26,6 +26,11 @@
#include "isctest.h"
/*
* This entire test requires threads.
*/
#ifdef ISC_PLATFORM_USETHREADS
/*
* Helper functions
*/
...
...
@@ -556,6 +561,16 @@ ATF_TC_BODY(purge, tc) {
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
...
...
@@ -567,6 +582,8 @@ ATF_TP_ADD_TCS(tp) {
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
());
...
...
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