]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Skip unsupported tests. Fixup streamtcp for more portability.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 25 Nov 2008 14:17:14 +0000 (14:17 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 25 Nov 2008 14:17:14 +0000 (14:17 +0000)
git-svn-id: file:///svn/unbound/trunk@1376 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
testcode/do-tests.sh
testcode/streamtcp.c

index 1ad6e708b97a520e3a5619bd60fad93636180381..863399c185fcb4ec901dc5b433f18aa9fac95bc0 100644 (file)
@@ -1,5 +1,7 @@
 25 November 2008: Wouter
        - configure complains when --without-ssl is given (bug #220).
+       - skip unsupported feature tests on vista/mingw.
+       - fixup testcode/streamtcp to work on vista/mingw.
 
 24 November 2008: Wouter
        - document that the user of the server daemon needs read privileges
index 924897f312bdec288da8493aa65d89c77e526bae..7faf5c00e2f6ec6177cceb49b7f31552f26d5d80 100755 (executable)
@@ -8,6 +8,7 @@ NEED_NC='fwd_compress_c00c.tpkg'
 NEED_CURL='06-ianaports.tpkg'
 NEED_WHOAMI='07-confroot.tpkg'
 NEED_IPV6='fwd_ancil.tpkg fwd_tcp_tc6.tpkg'
+NEED_NOMINGW='tcp_sigpipe.tpkg 07-confroot.tpkg 08-host-lib.tpkg fwd_ancil.tpkg'
 
 # test for ipv6, uses streamptcp peculiarity.
 if ./streamtcp -f ::1 2>&1 | grep "not supported" >/dev/null 2>&1; then
@@ -16,6 +17,13 @@ else
        HAVE_IPV6=yes
 fi
 
+# test mingw. no signals and so on.
+if uname | grep MINGW >/dev/null; then
+       HAVE_MINGW=yes
+else
+       HAVE_MINGW=no
+fi
+
 cd testdata;
 sh ../testcode/mini_tpkg.sh clean
 rm -f .perfstats.txt
@@ -61,8 +69,8 @@ for test in `ls *.tpkg`; do
                        SKIP=1;
                fi
        fi
-       if echo $NEED_JOBCONTROL | grep $test >/dev/null; then
-               if test "$JOBCONTROL" = no; then
+       if echo $NEED_NOMINGW | grep $test >/dev/null; then
+               if test "$HAVE_MINGW" = yes; then
                        SKIP=1;
                fi
        fi
index aaa5892c5b00b26f78993e9fd7833069d80a3040..b687d1c9ef8e6a5bde9ab2ff43f0a7b1cae646b4 100644 (file)
@@ -68,6 +68,7 @@ open_svr(const char* svr, int udp)
        socklen_t addrlen;
        int fd = -1;
        /* svr can be ip@port */
+       memset(&addr, 0, sizeof(addr));
        if(!extstrtoaddr(svr, &addr, &addrlen)) {
                printf("fatal: bad server specs '%s'\n", svr);
                exit(1);