skip tests that requires threads when threads are not available
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: t_timers.c,v 1.15 2000/08/30 01:35:42 bwelling Exp $ */
|
||||
/* $Id: t_timers.c,v 1.16 2001/01/04 00:43:33 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -353,6 +353,12 @@ t1(void) {
|
||||
isc_time_t expires;
|
||||
isc_interval_t interval;
|
||||
|
||||
#if ! ISC_PLATFORM_USETHREADS
|
||||
t_info("This test requires threads\n");
|
||||
t_result(T_UNTESTED);
|
||||
return;
|
||||
#endif
|
||||
|
||||
t_assert("isc_timer_create", 1, T_REQUIRED, a1);
|
||||
|
||||
Tx_nfails = 0;
|
||||
@@ -391,6 +397,12 @@ t2(void) {
|
||||
isc_time_t expires;
|
||||
isc_interval_t interval;
|
||||
|
||||
#if ! ISC_PLATFORM_USETHREADS
|
||||
t_info("This test requires threads\n");
|
||||
t_result(T_UNTESTED);
|
||||
return;
|
||||
#endif
|
||||
|
||||
t_assert("isc_timer_create", 2, T_REQUIRED, a2);
|
||||
|
||||
Tx_nfails = 0;
|
||||
@@ -513,6 +525,12 @@ t3(void) {
|
||||
isc_time_t expires;
|
||||
isc_interval_t interval;
|
||||
|
||||
#if ! ISC_PLATFORM_USETHREADS
|
||||
t_info("This test requires threads\n");
|
||||
t_result(T_UNTESTED);
|
||||
return;
|
||||
#endif
|
||||
|
||||
t_assert("isc_timer_create", 3, T_REQUIRED, a3);
|
||||
|
||||
Tx_nfails = 0;
|
||||
@@ -672,6 +690,12 @@ t4(void) {
|
||||
isc_time_t expires;
|
||||
isc_interval_t interval;
|
||||
|
||||
#if ! ISC_PLATFORM_USETHREADS
|
||||
t_info("This test requires threads\n");
|
||||
t_result(T_UNTESTED);
|
||||
return;
|
||||
#endif
|
||||
|
||||
Tx_nfails = 0;
|
||||
Tx_nprobs = 0;
|
||||
Tx_nevents = 3;
|
||||
@@ -861,6 +885,11 @@ t_timers5(void) {
|
||||
isc_time_t expires;
|
||||
isc_interval_t interval;
|
||||
|
||||
#if ! ISC_PLATFORM_USETHREADS
|
||||
t_info("This test requires threads\n");
|
||||
return (T_UNTESTED);
|
||||
#endif
|
||||
|
||||
T5_startflag = 0;
|
||||
T5_shutdownflag = 0;
|
||||
T5_eventcnt = 0;
|
||||
|
||||
Reference in New Issue
Block a user