Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/libevent/dist/test disable the DNS tests which ...



details:   https://anonhg.NetBSD.org/src/rev/ed56c1e42706
branches:  trunk
changeset: 755362:ed56c1e42706
user:      plunky <plunky%NetBSD.org@localhost>
date:      Thu Jun 03 07:08:41 2010 +0000

description:
disable the DNS tests which rely on external hosts, as
they are not useful with automated testing systems without
internet connectivity.

diffstat:

 external/bsd/libevent/dist/test/regress_dns.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (44 lines):

diff -r a784c7a18952 -r ed56c1e42706 external/bsd/libevent/dist/test/regress_dns.c
--- a/external/bsd/libevent/dist/test/regress_dns.c     Thu Jun 03 02:05:02 2010 +0000
+++ b/external/bsd/libevent/dist/test/regress_dns.c     Thu Jun 03 07:08:41 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: regress_dns.c,v 1.1.1.1 2009/11/02 10:01:03 plunky Exp $       */
+/*     $NetBSD: regress_dns.c,v 1.2 2010/06/03 07:08:41 plunky Exp $   */
 /*
  * Copyright (c) 2003-2006 Niels Provos <provos%citi.umich.edu@localhost>
  * All rights reserved.
@@ -65,10 +65,13 @@
 #include "log.h"
 
 static int dns_ok = 0;
+#if 0
 static int dns_err = 0;
+#endif
 
 void dns_suite(void);
 
+#if 0
 static void
 dns_gethostbyname_cb(int result, char type, int count, int ttl,
     void *addresses, void *arg)
@@ -185,6 +188,7 @@
                exit(1);
        }
 }
+#endif
 
 static int n_server_responses = 0;
 
@@ -368,10 +372,12 @@
 {
        dns_server(); /* Do this before we call evdns_init. */
 
+#if 0
        evdns_init();
        dns_gethostbyname();
        dns_gethostbyname6();
        dns_gethostbyaddr();
 
        evdns_shutdown(0);
+#endif
 }



Home | Main Index | Thread Index | Old Index