Check if threads support is available
This commit is contained in:
@@ -285,6 +285,7 @@ ATF_TC_BODY(compression, tc) {
|
||||
dns_test_end();
|
||||
}
|
||||
|
||||
#ifdef ISC_PLATFORM_USETHREADS
|
||||
#ifdef DNS_BENCHMARK_TESTS
|
||||
|
||||
/*
|
||||
@@ -380,6 +381,7 @@ ATF_TC_BODY(benchmark, tc) {
|
||||
}
|
||||
|
||||
#endif /* DNS_BENCHMARK_TESTS */
|
||||
#endif /* ISC_PLATFORM_USETHREADS */
|
||||
|
||||
/*
|
||||
* Main
|
||||
@@ -387,9 +389,11 @@ ATF_TC_BODY(benchmark, tc) {
|
||||
ATF_TP_ADD_TCS(tp) {
|
||||
ATF_TP_ADD_TC(tp, fullcompare);
|
||||
ATF_TP_ADD_TC(tp, compression);
|
||||
#ifdef ISC_PLATFORM_USETHREADS
|
||||
#ifdef DNS_BENCHMARK_TESTS
|
||||
ATF_TP_ADD_TC(tp, benchmark);
|
||||
#endif /* DNS_BENCHMARK_TESTS */
|
||||
#endif /* ISC_PLATFORM_USETHREADS */
|
||||
|
||||
return (atf_no_error());
|
||||
}
|
||||
|
||||
@@ -1309,6 +1309,7 @@ ATF_TC_BODY(rbt_insert_and_remove, tc) {
|
||||
dns_test_end();
|
||||
}
|
||||
|
||||
#ifdef ISC_PLATFORM_USETHREADS
|
||||
#ifdef DNS_BENCHMARK_TESTS
|
||||
|
||||
/*
|
||||
@@ -1436,6 +1437,7 @@ ATF_TC_BODY(benchmark, tc) {
|
||||
}
|
||||
|
||||
#endif /* DNS_BENCHMARK_TESTS */
|
||||
#endif /* ISC_PLATFORM_USETHREADS */
|
||||
|
||||
/*
|
||||
* Main
|
||||
@@ -1450,9 +1452,11 @@ ATF_TP_ADD_TCS(tp) {
|
||||
ATF_TP_ADD_TC(tp, rbt_remove);
|
||||
ATF_TP_ADD_TC(tp, rbt_remove_empty);
|
||||
ATF_TP_ADD_TC(tp, rbt_insert_and_remove);
|
||||
#ifdef ISC_PLATFORM_USETHREADS
|
||||
#ifdef DNS_BENCHMARK_TESTS
|
||||
ATF_TP_ADD_TC(tp, benchmark);
|
||||
#endif /* DNS_BENCHMARK_TESTS */
|
||||
#endif /* ISC_PLATFORM_USETHREADS */
|
||||
|
||||
return (atf_no_error());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user