Check if threads support is available

(cherry picked from commit 2457a4b245)
(cherry picked from commit 491a5a2a3c)
This commit is contained in:
Mukund Sivaraman
2016-03-04 14:08:05 +05:30
parent 09e84a2072
commit 8000419f5a
+4
View File
@@ -120,6 +120,7 @@ ATF_TC_BODY(fullcompare, tc) {
}
}
#ifdef ISC_PLATFORM_USETHREADS
#ifdef DNS_BENCHMARK_TESTS
/*
@@ -215,15 +216,18 @@ ATF_TC_BODY(benchmark, tc) {
}
#endif /* DNS_BENCHMARK_TESTS */
#endif /* ISC_PLATFORM_USETHREADS */
/*
* Main
*/
ATF_TP_ADD_TCS(tp) {
ATF_TP_ADD_TC(tp, fullcompare);
#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());
}