diff --git a/lib/dns/tests/name_test.c b/lib/dns/tests/name_test.c index 32c438eaa2..40c60ddd36 100644 --- a/lib/dns/tests/name_test.c +++ b/lib/dns/tests/name_test.c @@ -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()); }