]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
664. [bug] The t_tasks and t_timers module tests are now skipped v9.1.0b3
authorBrian Wellington <source@isc.org>
Mon, 8 Jan 2001 21:01:08 +0000 (21:01 +0000)
committerBrian Wellington <source@isc.org>
Mon, 8 Jan 2001 21:01:08 +0000 (21:01 +0000)
                        when building without threads, since they require
                        threads.

CHANGES
bin/tests/tasks/t_tasks.c
bin/tests/timers/t_timers.c

diff --git a/CHANGES b/CHANGES
index 7a47cf05c699c069cc4a30131fbc7d89d088aca7..64279823877ca1cf3102473fc0fcfbdd75fb5c0c 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,10 @@
  666.  [bug]           If a request sent by dig is longer than 512 bytes,
                        use TCP.
 
+ 664.  [bug]           The t_tasks and t_timers module tests are now skipped
+                       when building without threads, since they require
+                       threads.
+
  661.  [bug]           Certain UDP IXFR requests caused an assertion failure
                        (mpctx->allocated == 0). [RT #355, #394, #623]
 
index d31d6c532be5735efa4fe9eb5ed32842e8e7139e..058a6a54269917d4e383e604751eafbe85565219 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: t_tasks.c,v 1.19 2000/08/30 01:35:41 bwelling Exp $ */
+/* $Id: t_tasks.c,v 1.19.4.1 2001/01/08 21:01:06 bwelling Exp $ */
 
 #include <config.h>
 
@@ -24,6 +24,7 @@
 
 #include <isc/condition.h>
 #include <isc/mem.h>
+#include <isc/platform.h>
 #include <isc/task.h>
 #include <isc/time.h>
 #include <isc/timer.h>
@@ -466,7 +467,11 @@ t_tasks2(void) {
        unsigned int            workers;
        isc_result_t            isc_result;
 
-
+#if ! ISC_PLATFORM_USETHREADS
+       t_info("This test requires threads\n");
+       return (T_UNTESTED);
+#endif
+       
        T2_manager = NULL;
        T2_done = 0;
        T2_nprobs = 0;
@@ -654,6 +659,11 @@ t_tasks3(void) {
        void            *sender;
        isc_eventtype_t event_type;
 
+#if ! ISC_PLATFORM_USETHREADS
+       t_info("This test requires threads\n");
+       return (T_UNTESTED);
+#endif
+
        T3_flag = 0;
        T3_nevents = 0;
        T3_nsdevents = 0;
@@ -875,6 +885,11 @@ t_tasks4(void) {
        isc_eventtype_t event_type;
        isc_event_t     *event;
 
+#if ! ISC_PLATFORM_USETHREADS
+       t_info("This test requires threads\n");
+       return (T_UNTESTED);
+#endif
+       
        T4_nprobs = 0;
        T4_nfails = 0;
        T4_flag = 0;
@@ -1074,7 +1089,11 @@ t_tasks7(void) {
        isc_time_t      now;
        isc_interval_t  interval;
 
-
+#if ! ISC_PLATFORM_USETHREADS
+       t_info("This test requires threads\n");
+       return (T_UNTESTED);
+#endif
+       
        T7_nprobs = 0;
        T7_nfails = 0;
        T7_sdflag = 0;
@@ -1639,6 +1658,11 @@ static int
 t_tasks10(void) {
        int     result;
 
+#if ! ISC_PLATFORM_USETHREADS
+       t_info("This test requires threads\n");
+       return (T_UNTESTED);
+#endif
+       
        T10_nprobs = 0;
        T10_nfails = 0;
 
@@ -1796,6 +1820,10 @@ t_tasks11(int purgable) {
        isc_interval_t  interval;
        int             result;
 
+#if ! ISC_PLATFORM_USETHREADS
+       t_info("This test requires threads\n");
+       return (T_UNTESTED);
+#endif
 
        T11_startflag = 0;
        T11_shutdownflag = 0;
@@ -2010,6 +2038,11 @@ static int
 t_tasks13(void) {
        int     result;
 
+#if ! ISC_PLATFORM_USETHREADS
+       t_info("This test requires threads\n");
+       return (T_UNTESTED);
+#endif
+       
        T13_nfails = 0;
        T13_nprobs = 0;
 
index 792d574017ac7f3676e738c37effdae402de77a3..e829f05b4ba02a601b004f60f3ff8f915602a635 100644 (file)
@@ -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.15.4.1 2001/01/08 21:01:08 bwelling Exp $ */
 
 #include <config.h>
 
@@ -23,6 +23,7 @@
 
 #include <isc/condition.h>
 #include <isc/mem.h>
+#include <isc/platform.h>
 #include <isc/task.h>
 #include <isc/time.h>
 #include <isc/timer.h>
@@ -353,6 +354,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 +398,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 +526,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 +691,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 +886,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;