Check if threads support is available

This commit is contained in:
Mukund Sivaraman
2016-03-04 14:05:22 +05:30
parent 051197362b
commit 2457a4b245
2 changed files with 8 additions and 0 deletions

View File

@@ -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());
}