From 56f3cd33ecd897120793707ee50df6fc5079b39e Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 24 Jun 2008 14:35:53 +0000 Subject: [PATCH] Fixup ipv6 availability test. git-svn-id: file:///svn/unbound/trunk@1131 be551aaa-1e26-0410-a405-d3ace91eadb9 --- testcode/do-tests.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/testcode/do-tests.sh b/testcode/do-tests.sh index a52e0c7ce..f535fa15f 100755 --- a/testcode/do-tests.sh +++ b/testcode/do-tests.sh @@ -17,13 +17,12 @@ else JOBCONTROL=yes fi -# test for ipv6, uses dig 9.4.2 peculiarity (test @ before -v). -if dig @::1 -v >/dev/null 2>&1; then - HAVE_IPV6=yes -else +# test for ipv6, uses streamptcp peculiarity. +if ./streamtcp -f ::1 2>&1 | grep "not supported" >/dev/null 2>&1; then HAVE_IPV6=no +else + HAVE_IPV6=yes fi -HAVE_IPV6=yes cd testdata; sh ../testcode/mini_tpkg.sh clean -- 2.47.2