Module Name: src
Committed By: plunky
Date: Thu Jun 3 07:08:41 UTC 2010
Modified Files:
src/external/bsd/libevent/dist/test: regress_dns.c
Log Message:
disable the DNS tests which rely on external hosts, as
they are not useful with automated testing systems without
internet connectivity.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/bsd/libevent/dist/test/regress_dns.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/libevent/dist/test/regress_dns.c
diff -u src/external/bsd/libevent/dist/test/regress_dns.c:1.1.1.1 src/external/bsd/libevent/dist/test/regress_dns.c:1.2
--- src/external/bsd/libevent/dist/test/regress_dns.c:1.1.1.1 Mon Nov 2 10:01:03 2009
+++ src/external/bsd/libevent/dist/test/regress_dns.c Thu Jun 3 07:08:41 2010
@@ -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 <[email protected]>
* 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
}